/* ==========================================
   SGD Üyelik Başvuru Formu Stilleri
   ========================================== */

.membership-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 30px 20px;
}

/* Header */
.membership-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    color: #fff;
}

.membership-logo-area {
    margin-bottom: 15px;
}

.membership-logo-area img {
    max-height: 60px;
    margin: 0 auto;
    filter: brightness(0) invert(1);
}

.membership-logo-text {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: 2px;
}

.membership-header h1 {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 5px;
    letter-spacing: 0.5px;
}

.membership-header h2 {
    font-size: 17px;
    font-weight: 500;
    margin: 0;
    opacity: 0.9;
}

/* Beyan Metni */
.membership-declaration {
    background: #f8f9ff;
    border: 1px solid #e0e4f5;
    border-left: 4px solid #667eea;
    border-radius: 8px;
    padding: 20px 25px;
    margin-bottom: 30px;
    font-size: 14px;
    line-height: 1.8;
    color: #444;
}

.membership-declaration .declaration-closing {
    margin-top: 15px;
    font-style: italic;
    font-weight: 600;
    color: #333;
}

/* Form Section */
.form-section {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #667eea;
}

.section-icon {
    font-size: 22px;
}

.section-title h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #333;
    letter-spacing: 0.5px;
}

/* Grid Layouts */
.form-grid {
    display: grid;
    gap: 15px;
}

.form-grid.two-col {
    grid-template-columns: 1fr 1fr;
}

.form-grid.three-col {
    grid-template-columns: 1fr 1fr 1fr;
}

.form-field.full-width {
    grid-column: 1 / -1;
}

/* Form Fields */
.form-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #444;
    margin-bottom: 5px;
}

.form-field .req {
    color: #d9534f;
    font-weight: 700;
}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"],
.form-field input[type="date"],
.form-field input[type="number"],
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    color: #333;
    background: #fff;
    transition: all 0.2s ease;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.12);
}

.form-field input.error,
.form-field select.error,
.form-field textarea.error {
    border-color: #d9534f;
    box-shadow: 0 0 0 3px rgba(217, 83, 79, 0.12);
}

.form-field textarea {
    resize: vertical;
    min-height: 60px;
}

/* SGK Email */
.sgk-email-wrapper {
    display: flex;
    align-items: center;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.sgk-email-wrapper:focus-within {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.12);
}

.sgk-email-wrapper input {
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    flex: 1;
}

.sgk-email-suffix {
    background: #f0f0f0;
    padding: 10px 14px;
    font-size: 14px;
    color: #666;
    font-weight: 500;
    white-space: nowrap;
    border-left: 1px solid #ddd;
}

/* Education Block */
.education-block {
    margin-bottom: 15px;
    padding: 15px;
    background: #fafbff;
    border-radius: 8px;
    border: 1px solid #eef0f8;
}

.education-block h4 {
    margin: 0 0 12px;
    font-size: 14px;
    font-weight: 600;
    color: #764ba2;
}

/* Aidat Info */
.aidat-info {
    background: #fff9e6;
    border: 1px solid #f0d860;
    border-radius: 8px;
    padding: 18px 22px;
    margin-bottom: 20px;
    font-size: 13.5px;
    line-height: 1.8;
    color: #555;
}

.aidat-info strong {
    color: #333;
}

/* Checkboxes */
.form-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.checkbox-field {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    padding: 12px 15px;
    background: #fafbff;
    border: 1px solid #eef0f8;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.checkbox-field:hover {
    background: #f0f2ff;
    border-color: #667eea;
}

.checkbox-field input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: #667eea;
    cursor: pointer;
}

.checkbox-field span {
    font-size: 13.5px;
    line-height: 1.6;
    color: #444;
}

.checkbox-field .req {
    color: #d9534f;
    font-weight: 700;
}

/* Message */
.membership-message {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.6;
}

.membership-message.error {
    background: #fdf2f2;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.membership-message.success {
    background: #f0fdf4;
    border: 1px solid #a7f3d0;
    color: #065f46;
}

/* Submit */
.form-submit {
    text-align: center;
    margin-top: 10px;
}

.membership-submit-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    padding: 16px 60px;
    font-size: 17px;
    font-weight: 700;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
}

.membership-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.membership-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.form-note {
    margin-top: 12px;
    font-size: 13px;
    color: #888;
}

/* Success */
.membership-success {
    text-align: center;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 50px 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #5cb85c 0%, #4cae4c 100%);
    color: #fff;
    font-size: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.membership-success h2 {
    font-size: 24px;
    color: #333;
    margin: 0 0 15px;
}

.success-basvuru-no {
    font-size: 16px;
    background: #f8f9ff;
    display: inline-block;
    padding: 8px 20px;
    border-radius: 6px;
    border: 1px solid #e0e4f5;
    color: #667eea;
}

.membership-success p {
    color: #666;
    line-height: 1.7;
    margin: 10px 0;
}

.success-note {
    margin-top: 20px;
    font-size: 13px;
    color: #999;
}

/* Section Active */
.form-section.section-active {
    border-color: #667eea;
    box-shadow: 0 2px 12px rgba(102, 126, 234, 0.1);
}

/* ==========================================
   RESPONSIVE
   ========================================== */

@media (max-width: 768px) {
    .membership-page {
        padding: 15px 10px;
    }

    .membership-header {
        padding: 20px 15px;
    }

    .membership-header h1 {
        font-size: 17px;
    }

    .membership-header h2 {
        font-size: 14px;
    }

    .membership-declaration {
        padding: 15px;
        font-size: 13px;
    }

    .form-section {
        padding: 18px 15px;
    }

    .form-grid.two-col,
    .form-grid.three-col {
        grid-template-columns: 1fr;
    }

    .education-block .form-grid.three-col {
        grid-template-columns: 1fr;
    }

    .membership-submit-btn {
        width: 100%;
        padding: 16px 30px;
    }

    .membership-success {
        padding: 30px 20px;
    }

    .membership-success h2 {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .sgk-email-wrapper {
        flex-direction: column;
    }

    .sgk-email-suffix {
        border-left: none;
        border-top: 1px solid #ddd;
        width: 100%;
        text-align: center;
    }
}
