/**
 * Tesla Promotion Page Styles
 * @package XPEL_Korea
 */

/* ============================================
   Hero Section
   ============================================ */
.tesla-hero {
    position: relative;
    height: 60vh;
    min-height: 400px;
    max-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.tesla-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.tesla-hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tesla-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.4) 0%,
        rgba(0, 0, 0, 0.8) 100%
    );
}

.tesla-hero__content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #fff;
    padding: 2rem;
}

.tesla-hero__badge {
    display: inline-block;
    background: #000;
    color: #FDB521;
    font-size:  4rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    padding: 0.875rem 1.75rem;
    margin-bottom: 1.5rem;
    border: 2px solid #FDB521;
}

.tesla-hero__title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    margin: 0 0 1rem;
    letter-spacing: -0.02em;
}

.tesla-hero__subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin: 0;
}

/* ============================================
   Counter Section
   ============================================ */
.tesla-counter {
    background: #000;
    color: #fff;
    padding: 3rem 1.5rem;
}

.tesla-counter__inner {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.tesla-counter__label {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #999;
    margin-bottom: 0.5rem;
}

.tesla-counter__numbers {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(3rem, 10vw, 5rem);
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.tesla-counter__current {
    color: #FDB521;
}

.tesla-counter__divider {
    color: #444;
    margin: 0 0.25em;
}

.tesla-counter__total {
    color: #666;
}

.tesla-counter__urgency {
    font-size: 0.875rem;
    color: #FDB521;
    font-weight: 600;
}

/* ============================================
   Benefits Section
   ============================================ */
.tesla-benefits {
    background: #fff;
    padding: 5rem 1.5rem;
}

.tesla-benefits__inner {
    max-width: 1200px;
    margin: 0 auto;
}

.tesla-benefits__title {
    text-align: center;
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 3rem;
}

.tesla-benefits__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.tesla-benefit {
    text-align: center;
    padding: 2rem 1.5rem;
    background: #f8f8f8;
    border-radius: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.tesla-benefit:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.tesla-benefit__icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    border-radius: 50%;
}

.tesla-benefit__icon svg {
    width: 28px;
    height: 28px;
    stroke: #FDB521;
}

.tesla-benefit__name {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
}

.tesla-benefit__desc {
    font-size: 0.9375rem;
    color: #666;
    margin: 0;
}

/* ============================================
   White Glove Section
   ============================================ */
.tesla-white-glove {
    background: linear-gradient(135deg, #1a1a1a 0%, #000 100%);
    color: #fff;
    padding: 5rem 1.5rem;
}

.tesla-white-glove__inner {
    max-width: 500px;
    margin: 0 auto;
}

.tesla-white-glove__header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.tesla-white-glove__badge {
    display: inline-block;
    font-size: 0.8125rem;
    color: #FDB521;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.tesla-white-glove__title {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 0.75rem;
}

.tesla-white-glove__subtitle {
    font-size: 1rem;
    color: #aaa;
    margin: 0;
    line-height: 1.6;
}

/* Form Styles */
.tesla-form__row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.tesla-form__row .tesla-form__group {
    margin-bottom: 0;
}

.tesla-form__group--half {
    flex: 1;
    min-width: 0;
}

.tesla-form__group {
    margin-bottom: 1.25rem;
}

.tesla-form__label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #ccc;
}

.tesla-form__label .required {
    color: #FDB521;
}

.tesla-form__input,
.tesla-form__select {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    background: #222;
    border: 1px solid #333;
    border-radius: 6px;
    color: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.tesla-form__input::placeholder {
    color: #666;
}

.tesla-form__input:focus,
.tesla-form__select:focus {
    outline: none;
    border-color: #FDB521;
    box-shadow: 0 0 0 3px rgba(253, 181, 33, 0.15);
}

.tesla-form__select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23999' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.tesla-form__select:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #1a1a1a;
}

.tesla-form__select option {
    background: #222;
    color: #fff;
}

/* Consent Checkboxes */
.tesla-form__consent {
    margin: 1.5rem 0;
}

.tesla-form__checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    color: #aaa;
}

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

.tesla-form__checkbox .checkmark {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border: 2px solid #444;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.tesla-form__checkbox input:checked + .checkmark {
    background: #FDB521;
    border-color: #FDB521;
}

.tesla-form__checkbox input:checked + .checkmark::after {
    content: '✓';
    color: #000;
    font-size: 0.75rem;
    font-weight: 700;
}

.tesla-form__checkbox-text {
    line-height: 1.4;
}

.tesla-form__checkbox-text .required {
    color: #FDB521;
}

.tesla-form__link {
    color: #FDB521;
    text-decoration: none;
}

.tesla-form__link:hover {
    text-decoration: underline;
}

/* Submit Button */
.tesla-form__submit {
    width: 100%;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 700;
    background: #FDB521;
    color: #000;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.tesla-form__submit:hover:not(:disabled) {
    background: #e5a31e;
}

.tesla-form__submit:active:not(:disabled) {
    transform: scale(0.98);
}

.tesla-form__submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.tesla-form__submit .btn-loading {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.tesla-form__submit .spinner {
    width: 18px;
    height: 18px;
    animation: spin 1s linear infinite;
}

.tesla-form__submit .spinner circle {
    stroke-dasharray: 40;
    stroke-dashoffset: 30;
}

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

/* Success State */
.tesla-success {
    text-align: center;
    padding: 2rem 0;
}

.tesla-success__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    background: #FDB521;
    color: #000;
    font-size: 2rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tesla-success__title {
    font-size: 1.5rem;
    margin: 0 0 0.75rem;
}

.tesla-success__text {
    color: #aaa;
    line-height: 1.6;
    margin: 0 0 2rem;
}

.tesla-success__info {
    background: #222;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    text-align: left;
}

.tesla-success__info p {
    margin: 0 0 0.5rem;
    font-size: 0.9375rem;
    color: #ccc;
}

.tesla-success__info p:last-child {
    margin-bottom: 0;
}

.tesla-success__info strong {
    color: #fff;
}

.tesla-success__btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    background: transparent;
    border: 2px solid #FDB521;
    color: #FDB521;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s;
}

.tesla-success__btn:hover {
    background: #FDB521;
    color: #000;
}

/* ============================================
   Network Section
   ============================================ */
.tesla-network {
    background: #f5f5f5;
    padding: 4rem 1.5rem;
    text-align: center;
}

.tesla-network__inner {
    max-width: 600px;
    margin: 0 auto;
}

.tesla-network__icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.tesla-network__title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 0.75rem;
}

.tesla-network__regions {
    font-size: 0.9375rem;
    color: #666;
    margin: 0 0 1.5rem;
}

.tesla-network__link {
    display: inline-block;
    color: #000;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 2px solid #FDB521;
    padding-bottom: 2px;
    transition: color 0.2s;
}

.tesla-network__link:hover {
    color: #FDB521;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
    .tesla-hero {
        height: 50vh;
        min-height: 350px;
    }
    
    .tesla-counter {
        padding: 2rem 1rem;
    }
    
    .tesla-benefits {
        padding: 3rem 1rem;
    }
    
    .tesla-benefits__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .tesla-benefit {
        padding: 1.5rem 1rem;
    }
    
    .tesla-white-glove {
        padding: 3rem 1rem;
    }
    
    .tesla-network {
        padding: 3rem 1rem;
    }
}

@media (max-width: 600px) {
    .tesla-form__row {
        flex-direction: column;
        gap: 0;
    }
    
    .tesla-form__row .tesla-form__group {
        margin-bottom: 1.25rem;
    }
}

@media (max-width: 480px) {
    .tesla-benefits__grid {
        grid-template-columns: 1fr;
    }
}
