/* ==================== REGISTER PAGE SPECIFIC STYLES ==================== */
/* This file contains ONLY the register-specific styles */
/* Header and Footer styles are inherited from main.css */

/* ==================== REGISTRATION SECTION ==================== */
.registration-section {
    padding: 120px 1rem 80px;
    min-height: 100vh;
}

.registration-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 2rem;
    background: white;
    border-radius: 40px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

/* Left Side - Info */
.registration-info {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    padding: 3rem;
    color: white;
    position: relative;
    overflow: hidden;
}

.registration-info::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
}

.info-content {
    position: relative;
    z-index: 1;
}

.info-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.2);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    margin-bottom: 2rem;
}

.registration-info h1 {
    font-size: 2.5rem;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.registration-info h1 span {
    color: var(--accent);
}

.registration-info p {
    opacity: 0.9;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.info-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.info-feature {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.info-feature i {
    font-size: 1.5rem;
    color: var(--accent);
    margin-top: 3px;
}

.info-feature h4 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.info-feature p {
    font-size: 0.85rem;
    opacity: 0.8;
    margin: 0;
}

/* Highlight Feature */
.info-feature.highlight-feature {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(79, 70, 229, 0.1));
    border-radius: 16px;
    padding: 12px;
    margin-top: 8px;
    border-left: 3px solid var(--accent);
}

.info-feature.highlight-feature i {
    color: var(--accent);
    font-size: 1.6rem;
}

.info-feature.highlight-feature h4 {
    color: var(--accent);
}

.info-feature.highlight-feature p {
    font-size: 0.85rem;
    line-height: 1.5;
    margin-top: 4px;
}

.info-contact {
    display: flex;
    gap: 1rem;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.2);
}

.info-contact i {
    font-size: 2rem;
    color: var(--accent);
}

.info-contact p {
    margin: 0;
    font-size: 0.85rem;
}

.info-contact a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
}

.info-contact a:hover {
    color: var(--accent);
}

/* Right Side - Form */
.registration-form-container {
    padding: 3rem;
    background: white;
}

.form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.form-header h2 {
    font-size: 1.8rem;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.form-header p {
    color: var(--gray);
}

.form-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 1.5rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--gray-light);
}

.form-section-title i {
    color: var(--primary);
    font-size: 1.2rem;
}

.form-section-title span {
    font-weight: 600;
    color: var(--dark);
    font-size: 1.1rem;
}

.registration-form {
    display: flex;
    flex-direction: column;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--dark);
    font-size: 0.9rem;
}

.required {
    color: var(--red);
    margin-left: 3px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--gray-light);
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.3s;
    background: var(--light);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
    border-color: var(--primary-light);
}

/* ==================== DATE PICKER WITH CUSTOM PLACEHOLDER ==================== */
/* Custom placeholder for date input */
input[type="date"].empty {
    color: transparent;
    position: relative;
}

input[type="date"].empty::before {
    content: "Pilih Tarikh";
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray);
    font-size: 0.95rem;
    pointer-events: none;
    background: var(--light);
    padding: 0 4px;
}

input[type="date"].empty:focus::before {
    color: var(--primary);
}

input[type="date"]:valid {
    color: var(--dark);
}

/* Date Note Styling */
.date-note {
    display: block;
    font-size: 0.7rem;
    color: var(--gray);
    margin-top: 5px;
}

/* ==================== DISABLED FIELDS STYLING ==================== */
input:disabled, 
select:disabled,
.form-group input:disabled,
.form-group select:disabled {
    background-color: #f1f5f9 !important;
    color: #6b7280 !important;
    cursor: not-allowed !important;
    opacity: 0.7 !important;
    border-color: var(--gray-light) !important;
}

input:disabled:hover, 
select:disabled:hover,
.form-group input:disabled:hover,
.form-group select:disabled:hover {
    transform: none !important;
    box-shadow: none !important;
}

/* Parent section disabled styling */
#parentSectionTitle[style*="opacity: 0.6"],
#parentFields[style*="opacity: 0.6"],
#packageGroup[style*="opacity: 0.6"] {
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

/* ==================== TERMS SECTION ==================== */
.terms-section {
    margin: 1.5rem 0;
}

.checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 1rem;
    cursor: pointer;
    position: relative;
    padding-left: 0;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    width: 20px;
    height: 20px;
    background-color: var(--light);
    border: 2px solid var(--gray-light);
    border-radius: 5px;
    display: inline-block;
    flex-shrink: 0;
    transition: all 0.3s;
}

.checkbox-container:hover .checkmark {
    border-color: var(--primary);
}

.checkbox-container input:checked ~ .checkmark {
    background-color: var(--primary);
    border-color: var(--primary);
}

.checkbox-container input:checked ~ .checkmark::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: white;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 16px;
}

.terms-text {
    font-size: 0.85rem;
    color: var(--gray);
    line-height: 1.4;
}

.terms-text a {
    color: var(--primary);
    text-decoration: none;
}

.terms-text a:hover {
    text-decoration: underline;
}

/* ==================== PRICE SUMMARY ==================== */
.price-summary {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    padding: 1.2rem;
    border-radius: 16px;
    margin: 1rem 0;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 1.1rem;
}

.price-amount {
    color: var(--primary-dark);
    font-size: 1.5rem;
    font-weight: 800;
}

.payment-note {
    font-size: 0.75rem;
    color: var(--gray);
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.payment-note i {
    color: var(--accent);
}

/* ==================== SUBMIT BUTTON ==================== */
.submit-btn {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 1rem;
    width: 100%;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* ==================== LOADING SPINNER ==================== */
.loading-container {
    text-align: center;
    padding: 40px;
}

.spinner {
    display: inline-block;
    width: 50px;
    height: 50px;
    border: 4px solid var(--gray-light);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ==================== TOAST NOTIFICATION ==================== */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--dark);
    color: white;
    padding: 16px 32px;
    border-radius: 50px;
    box-shadow: var(--shadow-lg);
    z-index: 2000;
    display: none;
    min-width: 300px;
    text-align: center;
}

.toast.show {
    display: block;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translate(-50%, 100%);
        opacity: 0;
    }
    to {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

.toast.success {
    background: var(--green);
}

.toast.error {
    background: var(--red);
}

/* ==================== MODAL STYLES ==================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 3000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: white;
    width: 90%;
    max-width: 600px;
    max-height: 85vh;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 28px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.modal-header h3 {
    font-size: 1.4rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.modal-header h3 i {
    color: var(--accent);
    font-size: 1.5rem;
}

.modal-close {
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    line-height: 1;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.modal-close:hover {
    transform: scale(1.1);
    background: rgba(255,255,255,0.2);
    color: var(--accent);
}

.modal-body {
    padding: 28px;
    max-height: 60vh;
    overflow-y: auto;
    background: #ffffff;
}

/* Custom scrollbar for modal body */
.modal-body::-webkit-scrollbar {
    width: 6px;
}

.modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Terms Section Cards - No hover animation */
.terms-section-card {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
}

.terms-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.terms-icon i {
    font-size: 1.3rem;
    color: white;
}

.terms-content {
    flex: 1;
}

.terms-content h4 {
    color: var(--primary-dark);
    margin: 0 0 12px 0;
    font-size: 1rem;
    font-weight: 700;
}

.terms-content ul {
    margin: 0;
    padding-left: 20px;
}

.terms-content li {
    color: var(--gray);
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 8px;
}

.terms-content li .highlight {
    color: var(--accent);
    font-weight: 700;
    background: #fef3c7;
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
}

/* Package List Styles */
.package-list {
    margin: 10px 0;
}

.package-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px dashed #e2e8f0;
}

.package-item:last-child {
    border-bottom: none;
}

.package-name {
    font-weight: 700;
    color: var(--primary-dark);
}

.package-desc {
    color: var(--gray);
    font-size: 0.85rem;
}

.promo-badge-modal {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    padding: 12px 16px;
    border-radius: 14px;
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-dark);
}

.promo-badge-modal i {
    color: var(--accent);
    font-size: 1rem;
}

.modal-footer {
    padding: 18px 28px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: flex-end;
    background: #f8fafc;
}

.modal-btn {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 968px) {
    .registration-wrapper {
        grid-template-columns: 1fr;
    }
    
    .registration-info {
        padding: 2rem;
    }
    
    .registration-info h1 {
        font-size: 2rem;
    }
    
    .registration-form-container {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .registration-section {
        padding: 100px 1rem 60px;
    }
    
    .modal-content {
        width: 95%;
        max-height: 90vh;
    }
    
    .modal-header {
        padding: 16px 20px;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .modal-header h3 {
        font-size: 1.2rem;
    }
    
    .terms-section-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 14px;
    }
    
    .terms-icon {
        width: 40px;
        height: 40px;
    }
    
    .terms-icon i {
        font-size: 1rem;
    }
    
    .package-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .modal-footer {
        padding: 14px 20px;
    }
    
    .modal-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .registration-form-container {
        padding: 1.5rem;
    }
    
    .form-header h2 {
        font-size: 1.5rem;
    }
    
    .price-amount {
        font-size: 1.2rem;
    }
    
    .info-feature.highlight-feature {
        padding: 8px;
    }
    
    .info-feature.highlight-feature i {
        font-size: 1.3rem;
    }
    
    .info-feature.highlight-feature p {
        font-size: 0.75rem;
    }
    
    .modal-body {
        padding: 16px;
    }
    
    .terms-section-card {
        margin-bottom: 16px;
        padding: 12px;
    }
    
    .terms-content h4 {
        font-size: 0.9rem;
    }
    
    .terms-content li {
        font-size: 0.8rem;
    }
}
