/* ============================================
   HYR HÄSTTRANSPORT - DEDIKERAD STYLESHEET
   För /hyr/ sektionen
   ============================================ */

/* Page Hero - snygg gradient som andra sidor */
.page-hero {
    background: linear-gradient(135deg, var(--soft-teal) 0%, var(--light-teal) 100%);
    padding: var(--spacing-xxl) 0;
    margin-top: 82px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><path d="M0 0h100v100H0z" fill="none"/><path d="M20 50c0-16.5 13.5-30 30-30s30 13.5 30 30" stroke="rgba(255,255,255,0.1)" stroke-width="2" fill="none"/></svg>');
    opacity: 0.5;
}

.page-hero h1 {
    color: var(--warm-gray);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: var(--spacing-sm);
    position: relative;
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.5);
}

.hero-subtitle {
    color: var(--deep-teal);
    font-size: 1.25rem;
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

/* Vehicles Section - använd samma som hastlastbilar */
.vehicles-section {
    padding: var(--spacing-xxl) 0;
    background-color: var(--off-white);
}

/* Section Header */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--spacing-xl);
}

.section-header h2 {
    color: var(--warm-gray);
    font-size: clamp(2rem, 4vw, 2.75rem);
    margin-bottom: var(--spacing-sm);
}

.section-header p {
    color: var(--medium-gray);
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Booking Form Container */
.booking-form-container {
    max-width: 800px;
    margin: 0 auto;
}

/* Form Card */
.form-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 3rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
}

.form-card h2 {
    color: var(--warm-gray);
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    margin-bottom: 2rem;
    font-weight: 600;
}

.form-card h3 {
    color: var(--warm-gray);
    font-size: 1.5rem;
    margin: 2.5rem 0 1.5rem;
    font-weight: 600;
}

/* Form Groups */
.form-group {
    margin-bottom: 1.75rem;
}

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

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--warm-gray);
    font-size: 0.95rem;
}

label.required::after {
    content: ' *';
    color: var(--rust-orange);
}

/* Form Controls */
.form-control,
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="time"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--light-gray);
    border-radius: 6px;
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #ffffff;
    color: var(--warm-gray);
}

/* Select dropdown arrow */
select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23474746' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.form-control:focus,
input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--dark-blue);
    box-shadow: 0 0 0 3px rgba(6, 88, 156, 0.1);
}

.form-control:hover,
input:hover,
select:hover,
textarea:hover {
    border-color: var(--steel-blue);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
    line-height: 1.6;
}

/* Checkbox Groups */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 0.25rem;
    cursor: pointer;
}

.checkbox-group label {
    margin: 0;
    font-weight: 400;
    cursor: pointer;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.form-actions button {
    flex: 1;
}

/* Better contrast for secondary button */
.btn-secondary {
    background-color: var(--warm-gray);
    color: #ffffff;
    border: 2px solid var(--warm-gray);
}

.btn-secondary:hover {
    background-color: var(--dark-blue);
    border-color: var(--dark-blue);
    color: #ffffff;
}

/* Transport Grid - samma som vehicle-card */
.transport-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.transport-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid transparent;
    display: flex;
    flex-direction: column;
}

.transport-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.transport-card.selected {
    border-color: var(--dark-blue);
    box-shadow: 0 12px 40px rgba(6, 88, 156, 0.3);
}

.transport-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background: linear-gradient(135deg, var(--light-gray) 0%, var(--sand-beige) 100%);
}

.transport-info {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.transport-name {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--warm-gray);
    font-weight: 600;
}

.transport-description {
    color: var(--medium-gray);
    font-size: 1rem;
    line-height: 1.6;
    flex: 1;
}

/* Price Summary Box */
.price-summary {
    background: var(--off-white);
    padding: 2rem;
    border-radius: 8px;
    margin: 2rem 0;
    border-left: 4px solid var(--olive-green);
}

.price-summary h3 {
    margin-bottom: 1.5rem;
    color: var(--warm-gray);
    font-size: 1.5rem;
    font-weight: 600;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    color: var(--warm-gray);
}

.price-row strong {
    font-weight: 600;
}

.price-row.total {
    font-size: 1.5rem;
    font-weight: 700;
    border-top: 2px solid var(--light-gray);
    padding-top: 1rem;
    margin-top: 1rem;
    color: var(--dark-blue);
}

.discount-badge {
    background: var(--olive-green);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
    margin-left: 0.5rem;
}

/* Terms Box */
.terms-box {
    background: var(--off-white);
    padding: 2rem;
    border-radius: 8px;
    margin: 2rem 0;
    border: 1px solid var(--light-gray);
}

.terms-box h3 {
    color: var(--dark-blue);
    margin-bottom: 0.75rem;
    font-size: 1.15rem;
    font-weight: 600;
    margin-top: 1.5rem;
}

.terms-box h3:first-child {
    margin-top: 0;
}

.terms-box p {
    margin-bottom: 1rem;
    color: var(--warm-gray);
    line-height: 1.7;
}

/* Addon Items */
.addon-item {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    border: 2px solid var(--light-gray);
    margin: 1rem 0;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    transition: all 0.3s ease;
}

.addon-item:hover {
    border-color: var(--olive-green);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.addon-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 0.25rem;
    cursor: pointer;
}

.addon-info {
    flex: 1;
}

.addon-info h4 {
    color: var(--warm-gray);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.addon-info p {
    color: var(--medium-gray);
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.addon-price {
    font-weight: 600;
    color: var(--olive-green);
    font-size: 1.15rem;
}

/* Confirmation Message */
.confirmation-message {
    text-align: center;
    padding: 4rem 2rem;
}

.confirmation-icon {
    width: 100px;
    height: 100px;
    background: var(--off-white);
    border-radius: 50%;
    margin: 0 auto 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.confirmation-message h2 {
    color: var(--warm-gray);
    margin-bottom: 1rem;
}

.confirmation-message p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--medium-gray);
}

/* Alerts */
.alert {
    padding: 1rem 1.25rem;
    border-radius: 6px;
    margin: 1rem 0;
    border-left: 4px solid;
}

.alert-error {
    background: #fef2f2;
    color: #991b1b;
    border-color: #dc2626;
}

.alert-success {
    background: #f0fdf4;
    color: #065f46;
    border-color: #10b981;
}

.alert-info {
    background: #eff6ff;
    color: #1e40af;
    border-color: #3b82f6;
}

/* Admin Styles */
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.admin-header h2 {
    color: var(--warm-gray);
    margin: 0;
    font-size: clamp(1.75rem, 4vw, 2.25rem);
}

.admin-nav {
    display: flex;
    gap: 1rem;
    margin: 2rem 0;
    border-bottom: 2px solid var(--light-gray);
}

.admin-nav button {
    background: none;
    color: var(--warm-gray);
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 0;
    font-weight: 500;
    position: relative;
    cursor: pointer;
    transition: color 0.3s ease;
    font-size: 1rem;
}

.admin-nav button:hover {
    color: var(--dark-blue);
}

.admin-nav button.active {
    color: var(--dark-blue);
    font-weight: 600;
}

.admin-nav button.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--dark-blue);
}

.admin-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.admin-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.admin-card-header h3 {
    margin: 0;
    color: var(--warm-gray);
    font-size: 1.5rem;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

.admin-table th {
    background: var(--dark-blue);
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

.admin-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--light-gray);
}

.admin-table tr:hover {
    background: var(--off-white);
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.btn-danger {
    background: #dc2626;
}

.btn-danger:hover {
    background: #b91c1c;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.modal.show {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 12px;
    padding: 2.5rem;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.modal-header h2 {
    color: var(--warm-gray);
    margin: 0;
    font-size: 1.75rem;
}

.close-btn {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--medium-gray);
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: var(--off-white);
    color: var(--warm-gray);
}

/* Weekday Selector */
.weekday-selector {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
    margin: 1rem 0;
}

.weekday-btn {
    padding: 0.75rem 0.5rem;
    border: 2px solid var(--light-gray);
    border-radius: 6px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
}

.weekday-btn:hover {
    border-color: var(--dark-blue);
}

.weekday-btn.selected {
    background: var(--dark-blue);
    color: white;
    border-color: var(--dark-blue);
}

/* Image Preview */
.image-preview {
    max-width: 200px;
    max-height: 200px;
    margin: 1rem 0;
    border-radius: 8px;
    border: 2px solid var(--light-gray);
}

/* Addon removal button in summary */
.btn-addon-remove {
    background: var(--rust-orange);
    color: white;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.25rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 0;
    line-height: 1;
}

.btn-addon-remove:hover {
    background: var(--burnt-orange);
    transform: scale(1.1);
}

.addon-summary-row {
    align-items: center;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .form-card {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .vehicles-section {
        padding: 3rem 0;
    }

    .form-card {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .form-card h2 {
        font-size: 1.75rem;
        margin-bottom: 1.5rem;
    }

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

    .transport-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .form-actions {
        flex-direction: column;
    }

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

    .admin-nav {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .admin-nav button {
        padding: 0.75rem 1rem;
        font-size: 0.95rem;
    }

    .admin-card {
        padding: 1.5rem;
    }

    .admin-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .admin-card-header button {
        width: 100%;
    }

    .admin-table {
        font-size: 0.85rem;
        display: block;
        overflow-x: auto;
    }

    .admin-table th,
    .admin-table td {
        padding: 0.75rem 0.5rem;
    }

    .modal-content {
        width: 95%;
        padding: 1.5rem;
        max-height: 85vh;
    }

    .weekday-selector {
        grid-template-columns: repeat(4, 1fr);
    }

    .action-buttons {
        flex-direction: column;
    }

    .action-buttons button {
        width: 100%;
    }

    .price-summary {
        padding: 1.5rem;
    }

    .terms-box {
        padding: 1.5rem;
    }

    .addon-item {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .form-card {
        padding: 1rem;
        border-radius: 8px;
    }

    .form-card h2 {
        font-size: 1.5rem;
        margin-bottom: 1.25rem;
    }

    .transport-image {
        height: 180px;
    }

    .transport-name {
        font-size: 1.25rem;
    }

    .price-row {
        font-size: 0.9rem;
    }

    .price-row.total {
        font-size: 1.25rem;
    }

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

    label {
        font-size: 0.9rem;
    }

    .form-control,
    input,
    select,
    textarea {
        font-size: 16px; /* Prevents zoom on iOS */
    }

    .confirmation-message {
        padding: 2rem 1rem;
    }

    .confirmation-icon {
        width: 80px;
        height: 80px;
    }
}