/* dealers-styles.css - Premium Dealers Page Styles for HAMONIC */

.dealers-page-section {
    padding: 120px 0 80px;
    background: #f8fafc;
    min-height: 100vh;
    font-family: 'Kanit', sans-serif;
}

.dealers-page-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Page Header */
.dealers-header {
    text-align: center;
    margin-bottom: 4rem;
}

.dealers-title {
    font-size: 2.5rem;
    color: #1e293b;
    font-weight: 800;
    margin-bottom: 0.75rem;
    position: relative;
    display: inline-block;
}

.dealers-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background: linear-gradient(135deg, #4fd18b, #20724f);
    margin: 0.75rem auto 0;
    border-radius: 2px;
}

.dealers-subtitle {
    color: #64748b;
    font-size: 1.1rem;
    margin-top: 1rem;
}

/* Base Card Style */
.opportunity-card,
.form-card,
.contact-info-card {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    margin-bottom: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.opportunity-card::before,
.form-card::before,
.contact-info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, #4fd18b, #20724f);
    opacity: 0.8;
}

.opportunity-card:hover,
.form-card:hover,
.contact-info-card:hover {
    box-shadow: 0 15px 35px rgba(79, 209, 139, 0.08);
    border-color: rgba(79, 209, 139, 0.4);
}

/* Opportunity section */
.opportunity-header,
.form-header,
.contact-info-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 1rem;
}

.opportunity-header i,
.form-header i,
.contact-info-header i {
    font-size: 1.75rem;
    color: #4fd18b;
}

.opportunity-header h2,
.form-header h2,
.contact-info-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

/* Benefits Grid */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.benefit-card {
    background: #f8fafc;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
    background: white;
    border-color: #4fd18b;
    box-shadow: 0 10px 25px rgba(79, 209, 139, 0.1);
}

.benefit-card i {
    font-size: 2.25rem;
    color: #4fd18b;
    margin-bottom: 1.25rem;
    display: inline-block;
}

.benefit-card h3 {
    font-size: 1.15rem;
    color: #1e293b;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.benefit-card p {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

/* Form Styles */
.dealer-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

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

.form-group label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-group label i {
    color: #4fd18b;
    font-size: 0.9rem;
    width: 16px;
    text-align: center;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.85rem 1.2rem;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    color: #1e293b;
    background-color: #fff;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4fd18b;
    box-shadow: 0 0 0 4px rgba(79, 209, 139, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #94a3b8;
}

/* Checkbox Style */
.checkbox-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 0.25rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 2.25rem;
    cursor: pointer;
    font-size: 0.95rem;
    color: #475569;
    user-select: none;
    transition: color 0.2s ease;
}

.checkbox-label:hover {
    color: #1e293b;
}

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

.checkmark {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    height: 20px;
    width: 20px;
    background-color: #fff;
    border: 2px solid #cbd5e1;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.checkbox-label:hover input ~ .checkmark {
    border-color: #4fd18b;
}

.checkbox-label input:checked ~ .checkmark {
    background-color: #4fd18b;
    border-color: #4fd18b;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-label input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-label .checkmark:after {
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg);
}

/* Agreement Box */
.agreement-wrapper {
    margin-top: 1rem;
}

.checkbox-label.agreement {
    padding: 1.5rem 1.5rem 1.5rem 3rem;
    background: rgba(79, 209, 139, 0.05);
    border: 1px solid rgba(79, 209, 139, 0.15);
    border-radius: 12px;
    line-height: 1.6;
}

.checkbox-label.agreement .checkmark {
    left: 1.25rem;
}

.terms-link,
.privacy-link {
    color: #20724f;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px dashed #20724f;
    transition: all 0.2s ease;
}

.terms-link:hover,
.privacy-link:hover {
    color: #4fd18b;
    border-bottom-color: #4fd18b;
}

/* Form Buttons */
.form-buttons {
    display: flex;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.submit-btn,
.reset-btn {
    flex: 1;
    padding: 1rem 2rem;
    border-radius: 30px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.submit-btn {
    background: linear-gradient(135deg, #4fd18b, #20724f);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(79, 209, 139, 0.3);
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(79, 209, 139, 0.4);
}

.reset-btn {
    background: white;
    color: #64748b;
    border: 2px solid #cbd5e1;
}

.reset-btn:hover {
    background: #f8fafc;
    color: #1e293b;
    border-color: #94a3b8;
    transform: translateY(-3px);
}

/* Contact Info Section */
.contact-info-content {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem;
    background: #f8fafc;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.contact-method:hover {
    transform: translateX(5px);
    background: white;
    border-color: #4fd18b;
    box-shadow: 0 5px 15px rgba(79, 209, 139, 0.08);
}

.contact-method i {
    font-size: 1.5rem;
    color: #4fd18b;
    width: 32px;
    text-align: center;
}

.contact-method div h4 {
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
    color: #1e293b;
    font-weight: 700;
}

.contact-method div p {
    margin: 0;
    font-size: 0.95rem;
    color: #64748b;
}

.contact-method a {
    color: #1e293b;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.contact-method a:hover {
    color: #4fd18b;
    text-decoration: underline;
}

/* Back Navigation Buttons */
.back-buttons-wrapper {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 3rem;
}

.btn-back-contact,
.btn-back-home {
    padding: 0.9rem 2rem;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1.05rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.btn-back-contact {
    background: linear-gradient(135deg, #4fd18b 0%, #20724f 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(79, 209, 139, 0.3);
}

.btn-back-contact:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(79, 209, 139, 0.4);
}

.btn-back-home {
    background: white;
    color: #475569;
    border: 2px solid #e2e8f0;
}

.btn-back-home:hover {
    background: #f8fafc;
    color: #1e293b;
    border-color: #cbd5e1;
    transform: translateY(-3px);
}

/* Success Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(8px);
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s ease;
}

.modal-content {
    background: white;
    border-radius: 24px;
    width: 90%;
    max-width: 480px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    animation: modalScaleIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalScaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-header {
    background: linear-gradient(135deg, #4fd18b, #20724f);
    color: white;
    padding: 2.5rem 2rem;
    text-align: center;
    border-bottom: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.modal-header i {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
}

.modal-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.modal-body {
    padding: 2rem;
    text-align: center;
}

.modal-body p {
    margin: 0 0 1rem 0;
    font-size: 1.05rem;
    color: #475569;
    line-height: 1.6;
}

.modal-body p:last-child {
    margin-bottom: 0;
    font-size: 0.95rem;
    color: #64748b;
}

.modal-footer {
    padding: 0 2rem 2.5rem;
    text-align: center;
}

.modal-close-btn {
    width: 100%;
    padding: 0.85rem;
    background: #1e293b;
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal-close-btn:hover {
    background: #0f172a;
}

/* Error validation fields styles */
.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1) !important;
}

.error-message {
    background-color: #fef2f2;
    border: 1px solid #fee2e2;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    color: #b91c1c;
    text-align: center;
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Floating Repair Center Button */
.floating-button-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    align-items: center;
    z-index: 999;
    animation: bounceInUp 1s ease-out;
}

.floating-button {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    padding: 10px 20px 10px 12px;
    border-radius: 40px;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(79, 209, 139, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.button-bg {
    width: 36px;
    height: 36px;
    object-fit: contain;
    margin-right: 10px;
    transition: transform 0.5s ease;
}

.button-text {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
}

.close-button {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-left: 10px;
    font-size: 0.8rem;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.close-button:hover {
    background: #ef4444;
    color: white;
}

.floating-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(79, 209, 139, 0.25);
    border-color: #4fd18b;
}

.floating-button:hover .button-bg {
    transform: rotate(45deg);
}

/* Animations */
@keyframes bounceInUp {
    from, 60%, 75%, 90%, to {
        animation-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);
    }
    from {
        opacity: 0;
        transform: translate3d(0, 3000px, 0) scaleY(5);
    }
    60% {
        opacity: 1;
        transform: translate3d(0, -20px, 0) scaleY(0.9);
    }
    75% {
        transform: translate3d(0, 10px, 0) scaleY(0.95);
    }
    90% {
        transform: translate3d(0, -5px, 0) scaleY(0.985);
    }
    to {
        transform: translate3d(0, 0, 0);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .dealers-page-section {
        padding: 100px 0 60px;
    }
    
    .dealers-title {
        font-size: 2rem;
    }
    
    .opportunity-card,
    .form-card,
    .contact-info-card {
        padding: 2rem;
    }
    
    .benefits-grid,
    .form-row,
    .checkbox-group {
        grid-template-columns: 1fr;
    }
    
    .form-buttons,
    .back-buttons-wrapper {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn-back-contact,
    .btn-back-home {
        width: 100%;
    }
    
    .floating-button-container {
        bottom: 20px;
        right: 20px;
    }
}
