.registration-container {
    max-width: 800px;
    margin: 50px auto;
    padding: 30px;
    box-shadow: 0 0 20px rgba(76, 175, 80, 0.1);
    border-radius: 10px;
    background: white;
    border-top: 1px solid var(--main-gray);
    border-left: 1px solid var(--main-gray);
    border-right: 1px solid var(--main-gray);
    border-bottom: 1px solid var(--main-gray);
}

.registration-header {
    text-align: center;
    margin-bottom: 40px;
}

.registration-header h1 {
    font-size: 32px;
    color: var(--main-green);
    margin-bottom: 10px;
}

.form-section {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.form-section h3 {
    color: var(--main-green);
    font-size: 20px;
    margin-bottom: 20px;
}

.form-floating {
    margin-bottom: 16px;
}

.form-floating > .form-control {
    height: calc(3.5rem + 2px);
    padding: 1rem 0.75rem;
}

.form-floating > label {
    padding: 1rem 0.75rem;
}

.form-control:focus {
    border-color: var(--main-green);
    box-shadow: 0 0 0 0.25rem rgba(76, 175, 80, 0.25);
}

.btn-submit {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    background-color: var(--main-green);
    border-color: var(--main-green);
    margin-top: 20px;
}

.btn-submit:hover, 
.btn-submit:focus {
    background-color: var(--hover-green) !important;
    border-color: var(--hover-green) !important;
}

#driver_carStateNumber, #driver_carTrailerStateNumber, #driver_edit_carStateNumber, #driver_edit_carTrailerStateNumber {
    text-transform: uppercase;
}

.agreements {
    padding: 0;
    background: #FFFFFF;
}

.agreements .form-check-container {
    display: flex;
    align-items: center;
}

.agreements .form-check {
    margin-bottom: 0;
    display: flex;
    align-items: center;
}

.agreements .form-check-input {
    margin-top: 0;
    float: none;
}

.agreements .form-check-label {
    margin-bottom: 0;
}

.alert {
    margin-bottom: 20px;
    padding: 15px 20px;
}

.alert-success {
    border-left: 4px solid var(--main-green);
}

.alert-danger {
    border-left: 4px solid #dc3545;
}

/* Form validation styling */
.form-control.is-invalid {
    border-color: #dc3545;
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875em;
    color: #dc3545;
}

.offer-form-content {
    height: calc(100vh - 160px);
    display: flex;
    flex-direction: column;
}

@supports (height: 100dvh) {
    .offer-form-content {
        height: calc(100dvh - 160px);
    }
}

.offer-form-rest {
    flex-shrink: 0;
    padding-bottom: 20px;
}

.offer-container {
    border: 1px solid var(--main-gray);
    margin-bottom: 20px;
    overflow-y: scroll;
    padding: 20px;
    flex: 1;
}

.document__page {
    position: relative;
    z-index: 1;
}

.document__page-overlay {
    background: #FFF;
    opacity: 0;
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    z-index: 100;
}

.document__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.document__title {
    font-size: 16px;
    font-weight: bold;
}

.document__section {
    margin-bottom: 20px;
}

.document__header-title {
    font-size: 18px;
    font-weight: bold;
}

/* Tablet styles */
@media (max-width: 991px) {
    .registration-container {
        margin: 30px 20px;
        padding: 25px;
    }

    .offer-form-content {
        height: calc(100vh - 85px);
    }

    @supports (height: 100dvh) {
        .offer-form-content {
            height: calc(100dvh - 85px);
        }
    }

    .registration-header {
        margin-bottom: 30px;
    }

    .registration-header h1 {
        font-size: 28px;
    }

    .form-section {
        margin-bottom: 25px;
        padding: 15px;
    }

    .form-section h3 {
        font-size: 18px;
        margin-bottom: 15px;
    }
}

/* Mobile styles */
@media (max-width: 767px) {
    .registration-container {
        margin: 0;
        padding: 20px 5px 30px;
        box-shadow: none;
        border: none;
        min-height: 100%;
    }

    .offer-form-content {
        height: calc(100vh - 50px);
    }

    @supports (height: 100dvh) {
        .offer-form-content {
            height: calc(100dvh - 50px);
        }
    }

    .registration-header {
        margin-bottom: 25px;
    }

    .registration-header h1 {
        font-size: 24px;
    }

    .registration-header p {
        font-size: 14px;
    }

    .form-section {
        margin-bottom: 20px;
        padding: 15px;
    }

    .form-section h3 {
        font-size: 16px;
        margin-bottom: 15px;
    }

    .form-floating {
        margin-bottom: 12px;
    }

    .form-floating > label {
        font-size: 14px;
    }

    .form-floating > .form-control {
        height: calc(3rem + 2px);
        font-size: 14px;
    }

    .form-check-label {
        font-size: 14px;
    }

    .btn-submit {
        padding: 10px;
        font-size: 15px;
        margin-top: 0;
    }

    /* Fix date inputs on mobile */
    input[type="date"].form-control {
        min-height: calc(3rem + 2px);
    }

    .document__page {
        font-size: 14px;
        line-height: 16px;
    }

    .document__header {
        flex-direction: column;
    }

    .document__title {
        font-size: 14px;
        font-weight: bold;
    }

    .document__section {
        margin-bottom: 14px;
    }

    .document__header-title {
        font-size: 16px;
    }
}

/* Small mobile styles */
@media (max-width: 375px) {
    .registration-container {
        margin: 0;
        padding: 20px 5px 30px;
        box-shadow: none;
        border: none;
    }

    .offer-form-content {
        height: calc(100vh - 50px);
    }

    @supports (height: 100dvh) {
        .offer-form-content {
            height: calc(100dvh - 50px);
        }
    }

    .registration-header h1 {
        font-size: 22px;
    }

    .registration-header p {
        font-size: 13px;
    }

    .form-section {
        padding: 12px;
    }

    .btn-submit {
        padding: 8px;
        font-size: 14px;
        margin-top: 0;
    }

    .document__page {
        font-size: 14px;
        line-height: 16px;
    }

    .document__header {
        flex-direction: column;
    }

    .document__title {
        font-size: 14px;
        font-weight: bold;
    }

    .document__section {
        margin-bottom: 14px;
    }

    .document__header-title {
        font-size: 16px;
    }
} 