* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #020617 0%, #0e7490 55%, #020617 100%);
    min-height: 100vh;
    padding: 20px;
    color: #333;
}

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

header {
    text-align: center;
    color: white;
    margin-bottom: 30px;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.subtitle {
    font-size: 1rem;
    opacity: 0.95;
}

main {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    min-height: 600px;
    display: flex;
    flex-direction: column;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #0e7490;
    box-shadow: 0 0 0 3px rgba(14, 116, 144, 0.1);
}

.form-group input::placeholder {
    color: #bbb;
    opacity: 1;
}

.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-wrapper input {
    padding-right: 45px;
}

.toggle-password {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    transition: color 0.2s ease;
}

.toggle-password:hover {
    color: #0e7490;
}

.toggle-password:focus {
    outline: none;
    color: #0e7490;
}

.eye-icon {
    width: 20px;
    height: 20px;
}

.toggle-password.visible .eye-icon {
    opacity: 0.7;
}

.additional-fields {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-top: 20px;
}

.additional-fields label {
    margin-top: 15px;
}

.additional-fields label:first-child {
    margin-top: 0;
}

.services-container {
    max-height: 350px;
    overflow-y: auto;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    background: #fafafa;
    flex-shrink: 0;
}

.service-group {
    margin-bottom: 20px;
}

.service-group:last-child {
    margin-bottom: 0;
}

.service-group-title {
    font-weight: 600;
    color: #0e7490;
    margin-bottom: 10px;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.service-checkbox {
    display: flex;
    align-items: center;
    padding: 8px;
    margin-bottom: 6px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.service-checkbox:hover {
    background: rgba(14, 116, 144, 0.05);
}

.service-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    cursor: pointer;
    accent-color: #0e7490;
}

.service-checkbox label {
    cursor: pointer;
    margin: 0;
    flex: 1;
    font-weight: 400;
}

.loading-text {
    text-align: center;
    color: #666;
    padding: 20px;
}

.error-text {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 5px;
}

button[type="submit"] {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #020617 0%, #0e7490 55%, #020617 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-top: 10px;
}

button[type="submit"]:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(14, 116, 144, 0.4);
}

button[type="submit"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.result {
    margin-top: 30px;
    padding: 20px;
    border-radius: 8px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result.success {
    background: #d4edda;
    border: 2px solid #c3e6cb;
    color: #155724;
}

.result.error {
    background: #f8d7da;
    border: 2px solid #f5c6cb;
    color: #721c24;
}

.result h3 {
    margin-bottom: 10px;
}

.result-item {
    padding: 15px;
    margin-top: 15px;
    border-radius: 6px;
    border-left: 4px solid;
}

.result-item.success {
    background: #d4edda;
    border-left-color: #28a745;
}

.result-item.error {
    background: #f8d7da;
    border-left-color: #dc3545;
}

.result-item h4 {
    margin: 0 0 8px 0;
    font-size: 1rem;
}

.result-item p {
    margin: 0;
    font-size: 0.9rem;
}

.result-item .download-btn {
    margin-top: 10px;
}

.result .download-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background: #28a745;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: background 0.2s ease;
}

.result .download-btn:hover {
    background: #218838;
}

footer {
    text-align: center;
    color: white;
    margin-top: 30px;
    opacity: 0.9;
}

.btn-loader {
    display: inline-block;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.3s ease;
}

/* Make confirmation modal same style as main form */
#confirmationModal .modal-content {
    max-width: 600px;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    padding: 24px 30px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: #0e7490;
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    line-height: 1;
}

.modal-close:hover {
    background: #f0f0f0;
    color: #0e7490;
}

.modal-body {
    padding: 30px;
    overflow-y: auto;
    flex: 1;
}

/* Match main form padding for confirmation modal */
#confirmationModal .modal-body {
    padding: 30px;
}

.modal-body .result-item {
    margin-bottom: 20px;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.modal-body .result-item:last-child {
    margin-bottom: 0;
}

.modal-body .result-item.success {
    background: #d4edda;
    border-left-color: #28a745;
}

.modal-body .result-item.error {
    background: #f8d7da;
    border-left-color: #dc3545;
}

.modal-body .result-item h4 {
    margin: 0 0 10px 0;
    font-size: 1.1rem;
    color: #333;
}

.modal-body .result-item p {
    margin: 0;
    font-size: 0.95rem;
    color: #555;
}

.modal-body .download-btn {
    display: inline-block;
    margin-top: 12px;
    padding: 10px 20px;
    background: #28a745;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.modal-body .download-btn:hover {
    background: #218838;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.modal-summary {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #0e7490;
}

.modal-summary h3 {
    margin: 0 0 10px 0;
    font-size: 1.1rem;
    color: #0e7490;
}

.modal-summary p {
    margin: 0;
    font-size: 0.95rem;
    color: #555;
}

.delivery-options {
    display: flex;
    gap: 15px;
    flex-direction: column;
}

.delivery-option {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    position: relative;
}

.delivery-option:hover {
    background: #e8f4f8;
    border-color: #0e7490;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(14, 116, 144, 0.2);
}

.delivery-option:has(input:checked) {
    background: #e8f4f8;
    border-color: #0e7490;
    box-shadow: 0 2px 8px rgba(14, 116, 144, 0.15);
}

.delivery-option svg {
    color: #0e7490;
    flex-shrink: 0;
}

.delivery-checkbox-input {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #0e7490;
    flex-shrink: 0;
}

.confirm-delivery-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(14, 116, 144, 0.4);
}

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

/* Wizard Styles */
#mainForm {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.wizard-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.wizard-step[style*="display: block"] {
    opacity: 1;
}

.step-header {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
}

.step-number {
    display: block;
    font-size: 0.85rem;
    color: #0e7490;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.step-header h3 {
    margin: 0;
    font-size: 1.5rem;
    color: #333;
}

.wizard-step-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.wizard-navigation {
    display: flex;
    gap: 15px;
    margin-top: auto;
    padding-top: 20px;
    border-top: 2px solid #e0e0e0;
}

.wizard-btn {
    flex: 1;
    padding: 15px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.wizard-btn-primary {
    background: linear-gradient(135deg, #020617 0%, #0e7490 55%, #020617 100%);
    color: white;
}

.wizard-btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(14, 116, 144, 0.4);
}

.wizard-btn-secondary {
    background: #f8f9fa;
    color: #333;
    border: 2px solid #e0e0e0;
}

.wizard-btn-secondary:hover:not(:disabled) {
    background: #e8f4f8;
    border-color: #0e7490;
    color: #0e7490;
}

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

/* Confirmation Summary Styles */
.confirmation-summary {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.summary-section {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.summary-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.summary-section h4 {
    margin: 0 0 15px 0;
    font-size: 1.1rem;
    color: #0e7490;
    font-weight: 600;
}

.summary-section p {
    margin: 8px 0;
    color: #555;
    line-height: 1.6;
}

.summary-section strong {
    color: #333;
    font-weight: 600;
}

.summary-section ul {
    margin: 10px 0 0 0;
    padding-left: 25px;
}

.summary-section li {
    margin-bottom: 8px;
    color: #555;
    line-height: 1.6;
}

.warning-message {
    animation: fadeIn 0.3s ease;
}

@media (max-width: 640px) {
    header h1 {
        font-size: 2rem;
    }

    main {
        padding: 20px;
        min-height: 500px;
    }

    .modal-content {
        width: 95%;
        max-height: 90vh;
    }

    .modal-header {
        padding: 20px;
    }

    .modal-body {
        padding: 20px;
    }

    .modal-header h2 {
        font-size: 1.25rem;
    }

    .wizard-navigation {
        flex-direction: column;
    }

    .step-header h3 {
        font-size: 1.25rem;
    }

    .services-container {
        max-height: 250px;
    }
}
