/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* Global Form Styling */
.kccci-registration-form-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Poppins', sans-serif;
    background: #f5f7fa;
    border-radius: 24px;
}

.kccci-registration-form {
    display: block;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, #c41e3a 0%, #8b1528 100%);
    padding: 50px 40px;
    border-radius: 20px;
    text-align: center;
    color: white;
    margin-bottom: 40px;
    box-shadow: 0 10px 40px rgba(196, 30, 58, 0.3);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.1) 0%, transparent 70%);
    animation: kccci_pulse 15s ease-in-out infinite;
}

@keyframes kccci_pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.3; }
}

.logo-section {
    position: relative;
    z-index: 1;
    margin-bottom: 20px;
}

.logo-section h1 {
    font-size: 48px;
    font-weight: 700;
    margin: 0;
    color: #ffd700;
    letter-spacing: 3px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.logo-subtitle {
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 5px;
}

.page-header h2 {
    font-size: 26px;
    font-weight: 500;
    margin: 20px 0 15px 0;
    color: white;
    position: relative;
    z-index: 1;
}

.tagline {
    font-size: 16px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.95);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

/* Form Sections */
.form-section {
    background: white;
    padding: 40px;
    margin-bottom: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.form-section:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

/* Section Headers */
.section-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.section-number {
    background: linear-gradient(135deg, #c41e3a, #8b1528);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(196, 30, 58, 0.2);
}

.section-header h3 {
    font-size: 24px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

/* Membership Cards */
.membership-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.membership-card {
    position: relative;
    background: white;
    border: 3px solid #e0e0e0;
    border-radius: 12px;
    padding: 25px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.membership-card:hover {
    border-color: #c41e3a;
    box-shadow: 0 8px 25px rgba(196, 30, 58, 0.15);
    transform: translateY(-5px);
}

.membership-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

/* Selected state styling */
.membership-card:has(input[type="radio"]:checked) {
    border-color: #c41e3a;
    border-width: 4px;
    box-shadow: 0 8px 30px rgba(196, 30, 58, 0.3);
    transform: scale(1.05);
}

.membership-card input[type="radio"]:checked ~ .card-content h4,
.membership-card input[type="radio"]:checked ~ .card-content .price,
.membership-card input[type="radio"]:checked ~ .card-content .subtitle {
    color: #c41e3a;
}

.card-content h4 {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 8px 0;
}

.card-content .subtitle {
    font-size: 12px;
    color: #666;
    margin-bottom: 8px;
}

.card-content .price {
    font-size: 22px;
    font-weight: 700;
    color: #c41e3a;
    margin: 10px 0 15px 0;
}

.btn-benefits {
    background: #f0f0f0;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #2c3e50;
}

.btn-benefits:hover {
    background: #e0e0e0;
}

/* Selected Membership Display */
.selected-membership-display {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 20px 25px;
    border-radius: 12px;
    border-left: 4px solid #c41e3a;
    margin-top: 25px;
    display: none;
}

.selected-membership-display.active {
    display: block;
    animation: kccci_slideDown 0.3s ease;
}

.selected-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.selected-tier {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
}

.selected-tier span {
    color: #c41e3a;
    font-size: 20px;
}

.selected-amount {
    font-size: 24px;
    font-weight: 700;
    color: #c41e3a;
}

/* Form Grid */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.form-field.full-width {
    grid-column: 1 / -1;
}

.form-field label {
    display: block;
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-grid input[type="text"],
.form-grid input[type="email"],
.form-grid input[type="tel"],
.form-grid input[type="url"],
.form-grid textarea,
.form-grid select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 15px;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    background: #fafafa;
    box-sizing: border-box;
}

.form-grid input:focus,
.form-grid textarea:focus,
.form-grid select:focus {
    outline: none;
    border-color: #c41e3a;
    background: white;
    box-shadow: 0 0 0 4px rgba(196, 30, 58, 0.1);
}

.form-grid textarea {
    min-height: 120px;
    resize: vertical;
}

/* Social Media Section */
.social-media-section {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid #f0f0f0;
}

.social-media-section h4 {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 20px;
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.social-field {
    display: flex;
    align-items: center;
    gap: 10px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #c41e3a, #8b1528);
    color: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
}

.social-grid input {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
}

/* Upload Section */
.upload-section {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 25px;
}

.upload-field label {
    display: block;
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: 8px;
}

.file-note {
    display: block;
    font-size: 12px;
    color: #888;
    font-weight: 400;
    margin-top: 4px;
}

.upload-section input[type="file"] {
    width: 100%;
    padding: 12px;
    border: 2px dashed #c41e3a;
    border-radius: 10px;
    background: #fff9f9;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Section Note */
.section-note {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff9e6;
    padding: 16px 20px;
    border-radius: 10px;
    border-left: 4px solid #ffa500;
    margin-bottom: 25px;
    font-size: 14px;
    color: #666;
}

/* Upload Grid */
.upload-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.upload-card {
    background: #fafafa;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.upload-card:hover {
    border-color: #c41e3a;
    background: white;
    box-shadow: 0 4px 15px rgba(196, 30, 58, 0.1);
}

.upload-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.upload-card label {
    display: block;
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 14px;
}

.upload-card input[type="file"] {
    width: 100%;
    padding: 10px;
    border: 1px dashed #ccc;
    border-radius: 8px;
}

/* Terms & Conditions */
.terms-acceptance-box {
    background: linear-gradient(135deg, #fff9e6 0%, #fffef9 100%);
    padding: 25px;
    border-radius: 12px;
    border: 2px solid #ffd700;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 22px;
    height: 22px;
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: #c41e3a;
}

.checkbox-text {
    font-size: 15px;
    line-height: 1.6;
    color: #2c3e50;
}

.terms-link {
    color: #c41e3a;
    font-weight: 600;
    text-decoration: underline;
}

/* Payment Section */
.registration-fee-banner {
    background: linear-gradient(135deg, #c41e3a, #8b1528);
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 6px 20px rgba(196, 30, 58, 0.25);
}

.fee-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    padding: 10px 0;
}

.fee-line.total-line {
    border-top: 2px solid rgba(255, 255, 255, 0.3);
    padding-top: 20px;
    margin-top: 10px;
}

.fee-amount {
    font-size: 28px;
    font-weight: 700;
    color: #ffd700;
}

.payment-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.payment-option-card {
    position: relative;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.payment-option-card:has(input[type="radio"]:checked) {
    background: linear-gradient(135deg, #c41e3a, #8b1528);
    color: white;
}

.payment-card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.payment-card-content span {
    font-weight: 600;
}

.payment-option-card input[type="radio"]:checked ~ .payment-card-content span {
    color: white;
}

.payment-details-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 30px;
    margin-top: 25px;
}

.payment-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.instruction-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 15px;
}

.step-number {
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, #c41e3a, #8b1528);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.highlight-text {
    font-size: 18px;
    font-weight: 700;
    color: #c41e3a;
    margin: 0;
}

.bank-details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.bank-detail-item {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    border-left: 3px solid #c41e3a;
}

.detail-label {
    display: block;
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
}

.detail-value {
    font-weight: 600;
}

/* Submit Section */
.submit-section {
    text-align: center;
    padding: 40px 20px;
}

.btn-submit {
    background: linear-gradient(135deg, #c41e3a, #8b1528);
    color: white;
    padding: 18px 60px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 6px 25px rgba(196, 30, 58, 0.3);
    transition: all 0.3s ease;
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 35px rgba(196, 30, 58, 0.4);
}

.btn-submit:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Benefits Modal */
.benefits-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
}

.benefits-modal-content {
    background: white;
    margin: 5% auto;
    border-radius: 20px;
    max-width: 600px;
    width: 90%;
    overflow: hidden;
    animation: kccci_fadeIn 0.3s ease;
}

@keyframes kccci_fadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.benefits-modal-header {
    background: linear-gradient(135deg, #c41e3a, #8b1528);
    color: white;
    padding: 25px 30px;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 30px;
    cursor: pointer;
}

.benefits-modal-body {
    padding: 30px;
}

.benefits-modal-body ul {
    list-style: none;
    padding: 0;
}

.benefits-modal-body li {
    padding-left: 35px;
    position: relative;
    margin-bottom: 15px;
}

.benefits-modal-body li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #c41e3a;
    font-weight: bold;
}

/* Response Messages */
#kccci-response-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 10px;
    display: none;
}

.success-message {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

@keyframes kccci_slideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .form-grid, .upload-section, .payment-options, .bank-details-grid, .social-grid {
        grid-template-columns: 1fr;
    }
    .page-header {
        padding: 30px 20px;
    }
    .logo-section h1 {
        font-size: 32px;
    }
}
