/* Updated Contact & Appointment Form Styles - Based on Screenshot Design */
.contact-form-container {
    max-width: 1000px;
    margin: 70px auto;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(4, 81, 41, 0.08);
    position: relative;
    overflow: hidden;
}

/* Form Header - Green Background Section */
.form-header {
    background: linear-gradient(135deg, #045129 0%, #067833 100%);
    color: white;
    text-align: center;
    padding: 40px 40px;
    position: relative;
    overflow: hidden;
}

.form-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="3" fill="rgba(255,255,255,0.05)"/><circle cx="40" cy="80" r="1" fill="rgba(255,255,255,0.1)"/></svg>');
    animation: float 20s linear infinite;
}

@keyframes float {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.header-content {
    position: relative;
    z-index: 2;
}

.header-title {
    font-size: 2.2rem;
    font-weight: 200;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.header-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 400;
    margin-bottom: 0;
    line-height: 1.5;
}

/* Form Container */
.form-container {
    padding: 50px 40px;
}

/* Form Elements */
.contact-form {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.form-row {
    margin-bottom: 1.5rem;
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.form-group {
    flex: 1;
    min-width: 250px;
    position: relative;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e2d;
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e8f0e9;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fafcfb;
    color: #2c3e2d;
    box-sizing: border-box;
    height: 54px; 
}

.form-control:focus {
    outline: none;
    border-color: #045129;
    background: white;
    box-shadow: 0 0 0 4px rgba(4, 81, 41, 0.1);
    transform: translateY(-1px);
}

.form-control::placeholder {
    color: #94a3b8;
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
    height: auto;
    font-family: inherit;
}

select.form-control {
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23666" stroke-width="2"><polyline points="6,9 12,15 18,9"/></svg>');
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
    cursor: pointer;
}

/* Appointment Types */
.appointment-types {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.appointment-option {
    flex: 1;
    min-width: 150px;
    cursor: pointer;
    position: relative;
}

.appointment-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.option-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 1rem;
    border: 2px solid #e8f0e9;
    border-radius: 12px;
    transition: all 0.3s ease;
    background: #fafcfb;
    text-align: center;
    gap: 0.5rem;
}

.appointment-option:hover .option-content {
    border-color: #045129;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(4, 81, 41, 0.15);
}

.appointment-option input[type="radio"]:checked + .option-content {
    border-color: #045129;
    background-color: #f8fdf9;
    color: #045129;
    font-weight: 600;
}

.option-content i {
    font-size: 1.8rem;
    min-height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Checkbox Styling */
.checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    gap: 12px;
    line-height: 1.5;
    padding: 16px 20px;
    background: #f8fdf9;
    border-radius: 12px;
    border: 2px solid #e8f0e9;
    transition: all 0.3s ease;
    margin-bottom: 15px;
}

.checkbox-label:hover {
    border-color: #045129;
    background: #f2f8f3;
}

.form-checkbox {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #d1d5db;
    border-radius: 6px;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-top: 2px;
}

.checkmark::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) scale(0);
    transition: transform 0.2s ease;
}

.form-checkbox:checked + .checkmark {
    background-color: #045129;
    border-color: #045129;
}

.form-checkbox:checked + .checkmark::after {
    transform: rotate(45deg) scale(1);
}

.checkbox-text {
    flex: 1;
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.5;
}

.kvkk-link {
    color: #045129;
    text-decoration: none;
    font-weight: 600;
}

.kvkk-link:hover {
    text-decoration: underline;
}

/* Buttons */
.btn-submit {
    width: 100%;
    position: relative;
    margin-top: 20px;
    padding: 18px 40px;
    font-size: 1.1rem;
    background: linear-gradient(135deg, #045129, #067833);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit:hover:not(:disabled) {
    background: linear-gradient(135deg, #067833, #045129);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(4, 81, 41, 0.3);
}

.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

.button-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: none;
}

.btn-submit.loading .button-text {
    opacity: 0;
}

.btn-submit.loading .button-spinner {
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Error Messages */
.form-group.error .form-control,
.checkbox-label.error {
    border-color: #dc3545;
    background-color: #fff2f2;
}

.form-error-message {
    color: #a94442;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: block;
}

/* =================================================================== */
/* SUCCESS MESSAGE (EKLENDİ)                                         */
/* =================================================================== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.success-message {
    text-align: center;
    padding: 60px 40px;
    color: #045129;
    animation: fadeIn 0.5s ease;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 1.5rem;
    animation: bounce 0.6s ease;
}

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% { transform: translateY(0); }
    40%, 43% { transform: translateY(-10px); }
    70% { transform: translateY(-5px); }
    90% { transform: translateY(-2px); }
}

.success-message h3 {
    color: #045129;
    margin-bottom: 1rem;
    font-size: 1.8rem;
    font-weight: 600;
}

.success-message p {
    color: #64748b;
    margin-bottom: 2rem;
    line-height: 1.6;
    font-size: 1.1rem;
}


/* =================================================================== */
/* İKON STİLLERİ                                                     */
/* =================================================================== */
.input-wrapper {
    position: relative;
}

.form-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    z-index: 2;
    font-size: 1.2rem;
    pointer-events: none;
}

.form-group.with-icon .form-control {
    padding-left: 50px;
}


/* =================================================================== */
/* DATEPICKER STİLLERİ                                               */
/* =================================================================== */
.form-control.datepicker {
    cursor: pointer;
}

.datepicker-container {
    position: absolute;
    z-index: 1050;
    font-family: 'Inter', sans-serif;
    background-color: #fff;
    border: 1px solid #e8f0e9;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    width: 320px;
    display: none;
    animation: fadeIn 0.2s ease-out;
}

.datepicker-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: #f8fdf9;
    border-bottom: 1px solid #e8f0e9;
}

.datepicker-month-year {
    font-weight: 600;
    font-size: 1rem;
    color: #045129;
}

.datepicker-nav {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: #666;
    padding: 5px 10px;
    border-radius: 8px;
}

.datepicker-nav:hover {
    background-color: #e8f0e9;
    color: #045129;
}

.datepicker-nav:disabled {
    color: #ccc;
    cursor: not-allowed;
}

.datepicker-days-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    padding: 10px 0;
    font-size: 0.8rem;
    font-weight: 600;
    color: #94a3b8;
}

.datepicker-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    padding: 0 10px 10px;
}

.datepicker-day-empty {
    height: 40px;
}

.datepicker-day {
    border: none;
    background-color: transparent;
    text-align: center;
    height: 40px;
    cursor: pointer;
    border-radius: 50%;
    font-size: 0.9rem;
    color: #333;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.datepicker-day.disabled {
    color: #ccc;
    cursor: not-allowed;
    text-decoration: line-through;
}

.datepicker-day.available:hover {
    background-color: #e8f0e9;
}

.datepicker-day.today {
    font-weight: 700;
    border: 1px solid #045129;
}

.datepicker-day.selected {
    background-color: #045129;
    color: white;
    font-weight: 700;
}

.datepicker-day.available {
    color: #10b981;
    font-weight: 600;
}

.datepicker-day.disabled:hover {
    background-color: transparent;
}

/* Responsive Design */
@media (max-width: 768px) {
    .contact-form-container {
        margin-bottom: 3rem;
        margin-top: 1rem;
        margin-left: 0.5rem;
        margin-right: 0.5rem;
    }
    .form-header {
        padding: 30px 20px;
    }
    .header-title {
        font-size: 1.8rem;
    }
    .form-container {
        padding: 40px 20px;
    }
    .form-row {
        flex-direction: column;
        gap: 1rem;
        margin-bottom: 1rem;
    }
    .appointment-types {
        flex-direction: row;
        gap: 0.75rem;
    }
    .appointment-option {
        flex-basis: calc(50% - 0.375rem); 
        min-width: 0;
    }
}




/* Bu bloğu @media (max-width: 768px) içine ekleyin */
.btn-submit {
    width: 90%; /* Butonun genişliğini ayarlar */
    max-width: 320px; /* Butonun çok büyümesini engeller */
    display: block; /* margin: auto özelliğinin çalışması için gereklidir */
    margin-left: auto; /* Soldan boşluk bırakarak ortalar */
    margin-right: auto; /* Sağdan boşluk bırakarak ortalar */
}