:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --background-color: #f4f7f9;
    --text-color: #2c3e50;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
}

.logo-container {
    margin-bottom: 20px;
}

.logo {
    max-width: 200px;
    height: auto;
}

.startup-headline {
    text-align: center;
    margin-bottom: 20px;
}

.startup-headline h2 {
    color: var(--primary-color);
    font-size: 24px;
    font-weight: 700;
    max-width: 800px;
}

h1 {
    color: var(--primary-color);
    font-weight: 700;
    text-align: center;
}

.description-section {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 30px;
}

.description {
    color: var(--secondary-color);
    font-size: 16px;
}

#doctor-registration-form {
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    padding: 40px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.form-section {
    background-color: #f9fafb;
    border-radius: 8px;
    padding: 20px;
}

.form-section h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 18px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
}

.input-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-color);
}

input, select {
    width: 100%;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
}

input:focus, select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.specialty-section {
    margin-top: 20px;
    padding: 20px;
    background-color: #f9fafb;
    border-radius: 8px;
}

.resume-upload, .submit-section {
    grid-column: span 3;
    text-align: center;
}

.btn-submit {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 15px 40px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
}

.btn-submit:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

/* Loading Spinner Styles */
.loading-spinner {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Profession Selector Styles */
.profession-selector-container {
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    padding: 25px;
    margin-bottom: 25px;
    text-align: center;
}

.profession-selector-container h2 {
    color: var(--primary-color);
    font-size: 20px;
    margin-bottom: 15px;
}

.profession-selector {
    max-width: 500px;
    margin: 0 auto;
}

.profession-selector select {
    font-size: 16px;
    padding: 12px;
    border-radius: 8px;
    border: 2px solid var(--primary-color);
    background-color: #f8f9fa;
    cursor: pointer;
    transition: all 0.3s;
}

.profession-selector select:hover {
    background-color: #e9ecef;
}

.profession-selector select:focus {
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.3);
    outline: none;
}

/* Professional Form Grid */
.form-grid-professional {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Textarea Styles */
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    resize: vertical;
    min-height: 80px;
}

textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

/* Small field info */
small {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: var(--secondary-color);
}

/* Tablet Styles (768px - 1024px) */
@media screen and (max-width: 1024px) {
    .container {
        padding: 15px;
    }

    .form-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .startup-headline h2 {
        font-size: 22px;
    }

    .description {
        font-size: 15px;
    }

    #doctor-registration-form {
        padding: 30px;
    }

    .form-section h2 {
        font-size: 16px;
    }

    input, select {
        padding: 10px;
        font-size: 13px;
    }

    .btn-submit {
        padding: 12px 35px;
        font-size: 15px;
    }

    .form-grid-professional {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile Styles (up to 768px) */
@media screen and (max-width: 768px) {
    .container {
        padding: 10px;
    }

    .logo {
        max-width: 150px;
    }

    .startup-headline h2 {
        font-size: 18px;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    #doctor-registration-form {
        padding: 20px;
    }

    .form-section {
        padding: 15px;
    }

    .description {
        font-size: 14px;
    }

    input, select {
        padding: 8px;
        font-size: 12px;
    }

    .btn-submit {
        width: 100%;
        padding: 10px 20px;
        font-size: 14px;
    }

    .specialty-section {
        padding: 15px;
    }

    label {
        font-size: 14px;
    }

    .profession-selector select {
        width: 100%;
        font-size: 14px;
        padding: 10px;
    }
    
    .form-grid-professional {
        grid-template-columns: 1fr;
    }
}

/* Small Mobile Devices (up to 480px) */
@media screen and (max-width: 480px) {
    .container {
        padding: 5px;
    }

    .logo {
        max-width: 120px;
    }

    .startup-headline h2 {
        font-size: 16px;
    }

    .description {
        font-size: 12px;
    }

    .form-section h2 {
        font-size: 14px;
    }

    input, select {
        padding: 6px;
        font-size: 11px;
    }

    .btn-submit {
        font-size: 12px;
        padding: 8px 15px;
    }

    label {
        font-size: 12px;
    }
}
