* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #2F2F2F;
    min-height: 100vh;
    padding: 20px;
    line-height: 1.6;
    color: #DADADA;
}

.stationary-image-container {
    max-width: 900px;
    margin: 20px auto;
    padding-top: 60px;
    text-align: center;
}

.stationary-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.form-container {
    background: #3A3A3A;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    padding: 40px;
    border: 1px solid #555;
}

.form-progress {
    text-align: center;
    color: #DADADA;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    padding: 8px 20px;
    background: rgba(218, 218, 218, 0.1);
    border: 1px solid #555;
    border-radius: 20px;
    display: inline-block;
    width: auto;
    margin-left: 50%;
    transform: translateX(-50%);
}

h1 {
    color: #ffffff;
    margin-bottom: 10px;
    font-size: 28px;
    text-align: center;
}

.subtitle {
    color: #999;
    text-align: center;
    margin-bottom: 30px;
    font-size: 14px;
}

.required-note {
    color: #999;
    text-align: center;
    margin-bottom: 30px;
    font-size: 14px;
    font-style: italic;
}

.form-section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid #555;
}

.form-section:last-of-type {
    border-bottom: none;
}

.section-title {
    color: #ffffff;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #DADADA;
}

.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.form-group {
    flex: 1;
    min-width: 200px;
    margin-bottom: 20px;
}

.form-group.full-width {
    flex: 1 1 100%;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #DADADA;
    font-weight: 600;
    font-size: 14px;
}

.required {
    color: #ff6b6b;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="date"],
select,
textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #555;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.3s;
    font-family: inherit;
    background: #2F2F2F;
    color: #ffffff;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #888;
}

input[type="text"]::placeholder,
input[type="email"]::placeholder,
input[type="tel"]::placeholder,
input[type="number"]::placeholder,
textarea::placeholder {
    color: #999;
}

textarea {
    resize: vertical;
    min-height: 100px;
}

select option {
    background: #2F2F2F;
    color: #ffffff;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin: 0;
}

/* Initials row layout for policy acknowledgment */
.initials-row {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.initials-field {
    flex: 0 0 80px;
}

.initials-input {
    width: 70px !important;
    text-align: center;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.initials-text {
    flex: 1;
}

.initials-text p {
    color: #DADADA;
    line-height: 1.7;
}

@media (max-width: 768px) {
    .initials-row {
        flex-direction: column;
        gap: 10px;
    }

    .initials-field {
        flex: none;
    }
}

.signature-section {
    margin-bottom: 25px;
}

.signature-label {
    display: block;
    margin-bottom: 8px;
    color: #DADADA;
    font-weight: 600;
    font-size: 14px;
}

.signature-pad {
    border: 2px solid #555;
    border-radius: 8px;
    cursor: crosshair;
    display: block;
    background: #ffffff;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 600px;
}

.signature-controls {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.btn-clear {
    padding: 8px 16px;
    background: #ff6b6b;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
}

.btn-clear:hover {
    background: #ff5252;
}

.btn-submit {
    width: 100%;
    padding: 15px;
    background: #ffffff;
    color: #2F2F2F;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.btn-submit:hover {
    background: #DADADA;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.btn-submit:active {
    transform: translateY(0);
}

.success-message {
    display: none;
    background: #4caf50;
    color: white;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
}

.error-message {
    display: none;
    background: #ff6b6b;
    color: white;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
}

.submit-section {
    position: relative;
    margin-top: 20px;
}

.form-navigation {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #555;
}

.btn-nav {
    padding: 12px 30px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.btn-back {
    background: #555;
    color: #ffffff;
}

.btn-back:hover {
    background: #666;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.btn-next {
    background: #ffffff;
    color: #2F2F2F;
    margin-left: auto;
}

.btn-next:hover {
    background: #DADADA;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* Disabled button state */
.btn-nav:disabled,
.btn-nav.btn-disabled {
    background: #555;
    color: #999;
    cursor: not-allowed;
    opacity: 0.6;
    transform: none;
    box-shadow: none;
}

.btn-nav:disabled:hover,
.btn-nav.btn-disabled:hover {
    transform: none;
    box-shadow: none;
    background: #555;
}

.btn-nav:active {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .form-navigation {
        flex-direction: column;
    }

    .btn-nav {
        width: 100%;
    }

    .btn-next {
        margin-left: 0;
    }
}

.status-message-bottom {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    max-width: 400px;
    display: none;
    animation: slideInBottom 0.3s ease-out;
}

.status-message-bottom.success {
    background: #4caf50;
}

.status-message-bottom.error {
    background: #ff6b6b;
}

@keyframes slideInBottom {
    from {
        transform: translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.signature-note {
    font-size: 12px;
    color: #999;
    margin-top: 5px;
    font-style: italic;
}

.policy-text {
    background: #2F2F2F;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #DADADA;
    margin-bottom: 20px;
    line-height: 1.8;
}

.policy-text p {
    margin-bottom: 15px;
    color: #DADADA;
}

.policy-text p:last-child {
    margin-bottom: 0;
}

.policy-text strong {
    color: #ffffff;
    font-weight: 600;
}

.policy-text ul {
    margin: 15px 0 15px 20px;
    padding-left: 20px;
}

.policy-text li {
    margin-bottom: 10px;
    color: #DADADA;
}

@media (max-width: 768px) {
    .form-container {
        padding: 20px;
    }

    .form-row {
        flex-direction: column;
    }

    .form-group {
        min-width: 100%;
    }

    .status-message-bottom {
        right: 10px;
        left: 10px;
        max-width: none;
    }

    .policy-text {
        padding: 15px;
    }
}
