/* public/css/register.css */

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

body {
    font-family: 'Montserrat', sans-serif;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
}

.register-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.register-header {
    text-align: center;
    padding: 40px 20px;
}

.register-logo {
    max-width: 200px;
    height: auto;
    margin-bottom: 20px;
}

.register-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    color: #D4AF37;
    margin-bottom: 10px;
}

.register-subtitle {
    font-size: 1.1rem;
    color: #b0b0b0;
}

/* Form Container */
.form-container {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    overflow: hidden;
}

.registration-form {
    padding: 40px;
}

/* Sections */
.form-section {
    margin-bottom: 35px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.form-section:last-of-type {
    border-bottom: none;
}

.section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    color: #2d2d2d;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title i {
    color: #D4AF37;
}

/* Form Elements */
.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.form-row:last-child {
    margin-bottom: 0;
}

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

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

.form-group label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #555;
    margin-bottom: 8px;
}

.form-group .required {
    color: #D4AF37;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    color: #333;
    transition: all 0.3s ease;
    background: #fafafa;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #D4AF37;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group select {
    cursor: pointer;
}

.char-counter {
    text-align: right;
    font-size: 0.8rem;
    color: #888;
    margin-top: 5px;
}

/* Submit Button */
.form-actions {
    text-align: center;
    padding-top: 20px;
}

.btn-submit {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 50px;
    background: linear-gradient(135deg, #D4AF37, #b8960c);
    color: white;
    border: none;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(212, 175, 55, 0.4);
}

.btn-submit:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.form-note {
    margin-top: 20px;
    font-size: 0.9rem;
    color: #777;
}

.form-note i {
    color: #D4AF37;
}

/* Success Message */
.success-message {
    padding: 60px 40px;
    text-align: center;
}

.success-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #28a745, #218838);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
}

.success-icon i {
    font-size: 50px;
    color: white;
}

.success-message h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    color: #28a745;
    margin-bottom: 15px;
}

.success-message p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 10px;
}

/* Footer */
.register-footer {
    text-align: center;
    padding: 30px 20px;
    color: #777;
    font-size: 0.9rem;
}

/* Loading */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-spinner {
    text-align: center;
    color: white;
}

.loading-spinner i {
    font-size: 50px;
    color: #D4AF37;
    margin-bottom: 15px;
}

/* Error */
.form-group.error input,
.form-group.error select,
.form-group.error textarea {
    border-color: #dc3545;
}

.form-group .error-message {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 5px;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 16px 24px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 10000;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast.error {
    background: #dc3545;
}

.toast.success {
    background: #28a745;
}

/* Responsive */
@media (max-width: 768px) {
    .register-title {
        font-size: 1.8rem;
    }

    .registration-form {
        padding: 25px 20px;
    }

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

    .btn-submit {
        width: 100%;
    }
}

/* ===== RESALE CERTIFICATE SECTION ===== */
.section-description {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 20px;
    margin-top: -10px;
}

.checkbox-group {
    margin-top: -10px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 0.95rem;
    color: #555;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    width: 22px;
    height: 22px;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    background: #fafafa;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
    background: #D4AF37;
    border-color: #D4AF37;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '✓';
    color: white;
    font-size: 14px;
    font-weight: bold;
}

.checkbox-text {
    line-height: 1.4;
}

.field-hint {
    display: block;
    font-size: 0.8rem;
    color: #888;
    margin-top: 8px;
    margin-left: 34px;
    font-style: italic;
}

.no-certificate-reason {
    margin-top: 15px;
    padding: 15px;
    background: #fff8e6;
    border-radius: 8px;
    border-left: 4px solid #D4AF37;
}

.no-certificate-reason textarea {
    background: white;
}

/* ===== BENEFITS BOX ===== */
.benefits-box {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-top: 30px;
    padding: 25px 35px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #e0e0e0;
    font-size: 0.95rem;
}

.benefit-item i {
    color: #D4AF37;
    font-size: 1rem;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .benefits-box {
        padding: 20px 25px;
        max-width: 100%;
    }
}