/* TruckTitan Offer Form - Cinematic Brand Styling */

:root {
    --tt-black: #0a0a0a;
    --tt-anthracite: #1a1a1a;
    --tt-dark-grey: #2a2a2a;
    --tt-metal-grey: #3a3a3a;
    --tt-cool-grey: #888888;
    --tt-light-grey: #cccccc;
    --tt-silver: #e8e8e8;
    --tt-brand-red: #d32f2f;
    --tt-red-accent: #e63946;
    --tt-text-primary: #ffffff;
    --tt-text-secondary: #b0b0b0;
    --tt-border: #2a2a2a;
    --tt-border-light: #3a3a3a;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

.trucktitan-offer-wrapper {
    width: 100%;
    background: linear-gradient(180deg, var(--tt-black) 0%, var(--tt-anthracite) 50%, var(--tt-black) 100%);
    color: var(--tt-text-primary);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
}

/* Subtle vignette effect */
.trucktitan-offer-wrapper::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
    pointer-events: none;
    z-index: 0;
}

/* Form Page */
.trucktitan-form-page {
    width: 100%;
    padding: 4rem 2rem;
    background: linear-gradient(180deg, var(--tt-black) 0%, var(--tt-anthracite) 50%, var(--tt-black) 100%);
    position: relative;
    z-index: 1;
}

.form-header {
    text-align: center;
    margin-bottom: 4rem;
    animation: slideDown 0.8s ease-out;
}

.form-header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    color: var(--tt-text-primary);
    letter-spacing: -1px;
    text-transform: uppercase;
    font-weight: 800;
}

.form-header p {
    font-size: 1.1rem;
    color: var(--tt-text-secondary);
    margin: 0;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 300;
    letter-spacing: 0.5px;
}

.trucktitan-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    animation: fadeIn 0.8s ease-out 0.2s both;
    max-width: 100%;
}

/* Form Sections */
.form-section {
    background: linear-gradient(135deg, rgba(42, 42, 42, 0.6) 0%, rgba(26, 26, 26, 0.8) 100%);
    border: 1px solid var(--tt-border-light);
    border-radius: 2px;
    padding: 3rem;
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.form-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(211, 47, 47, 0.5), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.form-section:hover {
    border-color: var(--tt-metal-grey);
    background: linear-gradient(135deg, rgba(58, 58, 58, 0.7) 0%, rgba(42, 42, 42, 0.9) 100%);
}

.form-section:hover::before {
    opacity: 1;
}

.form-section h2 {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    color: var(--tt-text-primary);
    display: flex;
    align-items: center;
    gap: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1.4rem;
}

.form-section h2::before {
    content: '';
    display: inline-block;
    width: 3px;
    height: 24px;
    background: var(--tt-brand-red);
    border-radius: 1px;
}

.section-description {
    font-size: 0.95rem;
    color: var(--tt-text-secondary);
    margin: 0.75rem 0 1.5rem 0;
    font-weight: 300;
    letter-spacing: 0.3px;
}

/* Form Grid */
.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .form-grid-2 {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

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

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--tt-light-grey);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    opacity: 0.95;
}

.form-control {
    padding: 1rem;
    border: 1px solid var(--tt-border-light);
    border-radius: 2px;
    background: linear-gradient(135deg, rgba(42, 42, 42, 0.5) 0%, rgba(26, 26, 26, 0.7) 100%);
    color: var(--tt-text-primary);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5);
}

.form-control option {
    background: var(--tt-anthracite);
    color: var(--tt-text-primary);
}

.form-control option:checked {
    background: linear-gradient(var(--tt-brand-red), var(--tt-brand-red));
    color: white;
}

.form-control:focus {
    outline: none;
    border-color: var(--tt-brand-red);
    background: linear-gradient(135deg, rgba(58, 58, 58, 0.6) 0%, rgba(42, 42, 42, 0.8) 100%);
    box-shadow: 
        inset 0 1px 3px rgba(0, 0, 0, 0.5),
        0 0 15px rgba(211, 47, 47, 0.2);
}

.form-control::placeholder {
    color: var(--tt-cool-grey);
    opacity: 0.6;
}

.form-control:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.4) 0%, rgba(10, 10, 10, 0.6) 100%);
}

/* Vehicles Section */
.vehicles-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.vehicle-row {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.8) 0%, rgba(10, 10, 10, 0.9) 100%);
    border: 1px solid var(--tt-border);
    border-radius: 2px;
    padding: 2rem;
    transition: all 0.3s ease;
    animation: slideIn 0.4s ease-out;
    position: relative;
    overflow: hidden;
}

.vehicle-row::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--tt-brand-red);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.vehicle-row:hover {
    border-color: var(--tt-metal-grey);
    background: linear-gradient(135deg, rgba(42, 42, 42, 0.9) 0%, rgba(26, 26, 26, 1) 100%);
}

.vehicle-row:hover::before {
    opacity: 1;
}

.vehicle-row-content {
    width: 100%;
    position: relative;
    z-index: 1;
}

.form-grid-vehicle {
    display: grid;
    grid-template-columns: 1fr 0.7fr 1.5fr auto;
    gap: 1.5rem;
    align-items: flex-start;
}

@media (max-width: 1024px) {
    .form-grid-vehicle {
        grid-template-columns: 1fr 0.7fr 1.5fr auto;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .form-grid-vehicle {
        grid-template-columns: 1fr;
    }
}.care-frequency-group {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.5rem;
    align-items: center;
    margin-bottom: 1.5rem;
}

.care-frequency-group label {
    margin-bottom: 0;
    white-space: nowrap;
}

.care-frequency-group .form-control {
    margin: 0;
}

.services-group {
    grid-column: 1 / -1;
}

.services-inline {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    grid-column: 1 / -1;
}

@media (max-width: 1024px) {
    .services-inline {
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .services-inline {
        flex-direction: column;
        gap: 0.75rem;
    }
}

.service-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    padding: 0.75rem 1rem;
    border-radius: 2px;
    background: linear-gradient(135deg, rgba(42, 42, 42, 0.5) 0%, rgba(26, 26, 26, 0.7) 100%);
    border: 1px solid var(--tt-border-light);
    transition: all 0.2s ease;
    white-space: nowrap;
    font-weight: 500;
}

.service-checkbox:hover {
    background: linear-gradient(135deg, rgba(58, 58, 58, 0.6) 0%, rgba(42, 42, 42, 0.8) 100%);
    border-color: var(--tt-brand-red);
    box-shadow: 0 0 10px rgba(211, 47, 47, 0.15);
}

.service-checkbox input[type="checkbox"] {
    margin-right: 0.75rem;
    cursor: pointer;
    width: 18px;
    height: 18px;
    accent-color: var(--tt-brand-red);
}

.service-checkbox input[type="checkbox"]:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.service-checkbox span {
    color: var(--tt-text-primary);
    font-size: 0.95rem;
    font-weight: 500;
}

.service-checkbox input[type="checkbox"]:disabled ~ span {
    opacity: 0.5;
    color: var(--tt-cool-grey);
}

.service-note {
    display: block;
    font-size: 0.85rem;
    color: var(--tt-cool-grey);
    margin-top: 0.75rem;
    opacity: 0.8;
    font-style: italic;
}

.btn-remove-vehicle {
    background: none;
    border: 1px solid var(--tt-brand-red);
    color: var(--tt-brand-red);
    cursor: pointer;
    font-size: 1.5rem;
    padding: 0.75rem;
    border-radius: 2px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    align-self: center;
    font-weight: 700;
}

.btn-remove-vehicle:hover {
    background: rgba(211, 47, 47, 0.1);
    box-shadow: 0 0 15px rgba(211, 47, 47, 0.2);
    transform: scale(1.05);
}

.btn-remove-vehicle:active {
    transform: scale(0.95);
}

/* Buttons */
.btn {
    padding: 1.1rem 2.5rem;
    border: none;
    border-radius: 2px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: left 0.3s ease;
    z-index: 0;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--tt-brand-red) 0%, #b71c1c 100%);
    color: white;
    box-shadow: 
        0 4px 20px rgba(211, 47, 47, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 
        0 8px 30px rgba(211, 47, 47, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.btn-primary:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 
        0 2px 10px rgba(211, 47, 47, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-secondary {
    background: transparent;
    color: var(--tt-light-grey);
    border: 1px solid var(--tt-border-light);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.btn-secondary:hover:not(:disabled) {
    background: rgba(211, 47, 47, 0.08);
    border-color: var(--tt-brand-red);
    color: var(--tt-brand-red);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 0 15px rgba(211, 47, 47, 0.15);
}

.btn-add-vehicle {
    background: transparent;
    color: var(--tt-light-grey);
    border: 2px dashed var(--tt-metal-grey);
    width: 100%;
    margin-top: 1.5rem;
    padding: 1.5rem;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    transition: all 0.3s ease;
}

.btn-add-vehicle:hover {
    background: rgba(211, 47, 47, 0.08);
    border-color: var(--tt-brand-red);
    color: var(--tt-brand-red);
    box-shadow: 0 0 20px rgba(211, 47, 47, 0.2);
}

.btn-add-vehicle span {
    font-size: 1.5rem;
    font-weight: 700;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: flex-end;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--tt-border-light);
}

@media (max-width: 768px) {
    .form-actions {
        flex-direction: column-reverse;
    }

    .form-actions .btn {
        width: 100%;
    }
}

/* Messages */
.form-message {
    padding: 1.5rem;
    border-radius: 2px;
    margin-top: 1.5rem;
    font-weight: 600;
    animation: slideDown 0.3s ease-out;
    border-left: 3px solid;
}

.form-message.success {
    background: rgba(46, 213, 115, 0.1);
    color: #2ed573;
    border-left-color: #2ed573;
}

.form-message.error {
    background: rgba(211, 47, 47, 0.1);
    color: #ff6b6b;
    border-left-color: var(--tt-brand-red);
}

/* Success Page */
.trucktitan-success-page {
    width: 100%;
    min-height: 100vh;
    padding: 4rem 2rem;
    background: linear-gradient(180deg, var(--tt-black) 0%, var(--tt-anthracite) 50%, var(--tt-black) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.success-header {
    text-align: center;
    margin-bottom: 3rem;
    animation: slideDown 0.6s ease-out;
}

.success-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 2rem;
    background: linear-gradient(135deg, var(--tt-brand-red) 0%, #b71c1c 100%);
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    color: white;
    box-shadow: 
        0 8px 32px rgba(211, 47, 47, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    font-weight: 700;
}

.success-header h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin: 0 0 1rem 0;
    color: var(--tt-text-primary);
    text-transform: uppercase;
    letter-spacing: -1px;
}

.success-header p {
    font-size: 1.1rem;
    color: var(--tt-text-secondary);
    margin: 0;
    font-weight: 300;
}

.success-content {
    max-width: 900px;
    margin: 0 auto;
    background: linear-gradient(135deg, rgba(42, 42, 42, 0.6) 0%, rgba(26, 26, 26, 0.8) 100%);
    border: 1px solid var(--tt-border-light);
    border-radius: 2px;
    padding: 3rem;
    animation: fadeIn 0.8s ease-out 0.2s both;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.success-content > p {
    font-size: 1rem;
    color: var(--tt-text-secondary);
    margin: 0 0 2.5rem 0;
    text-align: center;
    font-weight: 300;
}

.success-details {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.8) 0%, rgba(10, 10, 10, 0.9) 100%);
    border: 1px solid var(--tt-border);
    border-radius: 2px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5);
}

.detail-section {
    margin-bottom: 2.5rem;
}

.detail-section:last-child {
    margin-bottom: 0;
}

.detail-section h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 1.5rem 0;
    color: var(--tt-text-primary);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.detail-section h3::before {
    content: '';
    display: inline-block;
    width: 3px;
    height: 20px;
    background: var(--tt-brand-red);
    border-radius: 1px;
}

.detail-row {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 1.5rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--tt-border);
}

.detail-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.detail-label {
    font-weight: 700;
    color: var(--tt-cool-grey);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-value {
    color: var(--tt-text-primary);
    font-weight: 500;
}

.vehicles-summary {
    margin-top: 1.5rem;
}

.vehicle-summary-item {
    background: linear-gradient(135deg, rgba(211, 47, 47, 0.08) 0%, rgba(211, 47, 47, 0.04) 100%);
    border-left: 3px solid var(--tt-brand-red);
    border-radius: 2px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
}

.vehicle-summary-item:last-child {
    margin-bottom: 0;
}

.vehicle-summary-header {
    font-weight: 700;
    color: var(--tt-brand-red);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.95rem;
}

.vehicle-summary-detail {
    font-size: 0.95rem;
    color: var(--tt-text-secondary);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.success-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--tt-border-light);
}

@media (max-width: 768px) {
    .success-actions {
        flex-direction: column;
    }

    .success-actions .btn {
        width: 100%;
    }

    .detail-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .success-content {
        padding: 2rem;
    }
}

/* Animations */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .trucktitan-form-page {
        padding: 2.5rem 1rem;
    }

    .form-header h1 {
        font-size: 2rem;
    }

    .form-section {
        padding: 2rem;
    }

    .success-content {
        padding: 2rem;
    }
}
