:root {
    --pn-blue: #023BAD;
    --pn-green: #06732A;
    --pn-gradient: linear-gradient(135deg, #023BAD 0%, #06732A 100%);
    --pn-light-blue: rgba(2, 59, 173, 0.08);
    --pn-light-green: rgba(6, 115, 42, 0.1);
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --surface-color: #ffffff;
    --bg-body: #f8fafc;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.pn-header {
    background: var(--pn-gradient) !important;
    padding: 4rem 1rem 14rem;
    text-align: center;
    color: white !important;
    position: relative;
    margin-bottom: 0;
    overflow: hidden;
    background-size: cover, 80px 80px;
    background-image: linear-gradient(135deg, rgba(2, 59, 173, 0.95) 0%, rgba(6, 115, 42, 0.95) 100%), url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.08'%3E%3Cpath d='M50 50c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10c0 5.523-4.477 10-10 10s-10-4.477-10-10 4.477-10 10-10zM10 10c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10c0 5.523-4.477 10-10 10S0 25.523 0 20s4.477-10 10-10zm10 8c4.418 0 8-3.582 8-8s-3.582-8-8-8-8 3.582-8 8 3.582 8 8 8zm40 40c4.418 0 8-3.582 8-8s-3.582-8-8-8-8 3.582-8 8 3.582 8 8 8z' /%3E%3C/g%3E%3C/g%3E%3C/svg%3E") !important;
}

.pn-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%), radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.logo-container {
    width: 100px;
    height: 100px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
    font-size: 2.8rem;
    color: var(--pn-blue);
    position: relative;
    z-index: 2;
    transition: var(--transition);
}

.logo-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.pn-header h1 {
    font-weight: 800;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 3px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
    letter-spacing: -0.5px;
}

.pn-header p {
    font-size: 1.15rem;
    opacity: 0.98;
    position: relative;
    z-index: 2;
    font-weight: 500;
    letter-spacing: 0.3px;
    margin-top: 0.5rem;
}

.pn-container {
    max-width: 960px;
    margin: -10rem auto 5rem;
    padding: 0 1.5rem;
    position: relative;
    z-index: 10;
}

.pn-card {
    background: var(--surface-color);
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(226, 232, 240, 0.8);
    overflow: hidden;
    transition: var(--transition);
}

.pn-card:hover {
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.18);
}

.stepper-wrapper {
    background: linear-gradient(to bottom, #ffffff 0%, #f8fafc 100%);
    border-bottom: 1px solid var(--border-color);
    padding: 2.5rem 1.5rem;
}

.stepper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 750px;
    margin: 0 auto;
    position: relative;
}

.step-connector {
    position: absolute;
    top: 22px;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, #e2e8f0 0%, #cbd5e1 100%);
    z-index: 1;
    border-radius: 2px;
}

.step-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--pn-blue) 0%, var(--pn-green) 100%);
    width: 0%;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(6, 115, 42, 0.4);
}

.step-item {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.step-number {
    width: 44px;
    height: 44px;
    background: white;
    border: 3px solid #cbd5e1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.step-item.active .step-number {
    background: var(--pn-blue);
    border-color: var(--pn-blue);
    color: white;
    transform: scale(1.15);
    box-shadow: 0 0 0 6px var(--pn-light-blue), 0 4px 12px rgba(2, 59, 173, 0.3);
}

.step-item.completed .step-number {
    background: var(--pn-green);
    border-color: var(--pn-green);
    color: white;
    box-shadow: 0 2px 8px rgba(6, 115, 42, 0.2);
}

.step-item.completed .step-number::before {
    content: '✓';
    position: absolute;
}

.step-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    text-align: center;
    transition: var(--transition);
}

.step-item.active .step-label {
    color: var(--pn-blue);
    font-weight: 700;
}

.step-item.completed .step-label {
    color: var(--pn-green);
}

.form-content {
    padding: 3rem 2.5rem;
}

.form-section {
    display: none;
    animation: fadeInUp 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-section.active {
    display: block;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 2.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 2px solid var(--border-color);
    position: relative;
}

.section-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 80px;
    height: 2px;
    background: var(--pn-gradient);
}

.section-icon {
    width: 50px;
    height: 50px;
    background: var(--pn-gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.4rem;
    box-shadow: 0 6px 16px rgba(2, 59, 173, 0.25);
    flex-shrink: 0;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-dark);
    letter-spacing: -0.3px;
}

.form-label {
    font-weight: 600;
    font-size: 0.95rem;
    color: #334155;
    margin-bottom: 0.6rem;
    display: block;
}

.required {
    color: #dc2626;
    margin-left: 3px;
    font-weight: 700;
}

.form-control, .form-select, .select2-container .select2-selection--single {
    min-height: 52px !important;
    border-radius: 12px !important;
    padding: 0.875rem 1.125rem;
    border: 2px solid var(--border-color);
    font-size: 0.95rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    background-color: white;
    font-family: inherit;
}

.form-control:hover, .form-select:hover {
    border-color: #cbd5e1;
}

.form-control:focus, .form-select:focus, .select2-container--open .select2-selection--single {
    border-color: var(--pn-blue) !important;
    box-shadow: 0 0 0 4px var(--pn-light-blue) !important;
    outline: none;
    background-color: white;
}

.select2-container--bootstrap-5 .select2-selection--single {
    height: 52px !important;
    display: flex;
    align-items: center;
}

.select2-container--bootstrap-5 .select2-selection--single .select2-selection__rendered {
    color: var(--text-dark);
    padding: 0 !important;
    line-height: normal !important;
}

.select2-container--bootstrap-5 .select2-selection--single .select2-selection__arrow {
    height: 52px !important;
}

.select2-dropdown {
    border: 2px solid var(--pn-blue);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.form-control.is-invalid, .form-select.is-invalid, .select2-container.is-invalid .select2-selection {
    border-color: #dc2626 !important;
    background-color: #fef2f2;
}

.invalid-feedback {
    color: #dc2626;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    font-weight: 500;
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
    padding-top: 1rem;
}

.input-group {
    position: relative;
}

.input-group .form-control {
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    border-right: none !important;
    z-index: 1;
}

.input-group .input-group-text {
    background-color: white !important;
    border: 2px solid var(--border-color);
    border-left: none !important;
    border-radius: 0 12px 12px 0 !important;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0 1.125rem;
    transition: var(--transition);
}

.input-group:hover .form-control, .input-group:hover .input-group-text {
    border-color: #cbd5e1;
}

.input-group .form-control:focus+.input-group-text {
    border-color: var(--pn-blue);
    color: var(--pn-blue);
    background-color: var(--pn-light-blue) !important;
}

.input-group .input-group-text:hover {
    color: var(--pn-blue);
}

.file-upload-wrapper {
    position: relative;
    border: 3px dashed var(--border-color);
    border-radius: 16px;
    padding: 3rem 1.5rem;
    text-align: center;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    transition: var(--transition);
    overflow: hidden;
    cursor: pointer;
}

.file-upload-wrapper:hover {
    border-color: var(--pn-blue);
    background: linear-gradient(135deg, var(--pn-light-blue) 0%, rgba(2, 59, 173, 0.05) 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.file-upload-wrapper.has-file {
    border-color: var(--pn-green);
    border-style: solid;
    background: linear-gradient(135deg, var(--pn-light-green) 0%, rgba(6, 115, 42, 0.05) 100%);
}

.file-input-hidden {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0 !important;
    cursor: pointer;
    z-index: 10;
}

.file-upload-icon {
    font-size: 3rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    transition: var(--transition);
}

.file-upload-wrapper:hover .file-upload-icon {
    color: var(--pn-blue);
    transform: scale(1.1);
}

.file-upload-text {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.file-upload-hint {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.file-preview {
    display: none;
    align-items: center;
    gap: 1rem;
    background: white;
    border: 2px solid var(--pn-green);
    padding: 1.25rem;
    border-radius: 14px;
    margin-top: 1rem;
    box-shadow: var(--shadow-sm);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.file-preview.show {
    display: flex !important;
}

.file-preview-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #dc2626;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.file-preview-name {
    flex-grow: 1;
    font-weight: 600;
    color: var(--text-dark);
    word-break: break-word;
    text-align: left;
    font-size: 0.95rem;
}

.file-preview-remove {
    background: transparent;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}

.file-preview-remove:hover {
    background-color: #fee2e2;
    color: #ef4444;
    transform: rotate(90deg);
}

.form-actions {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
    display: flex;
    gap: 1rem;
    align-items: center;
}

.btn {
    padding: 0.875rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.975rem;
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    text-transform: none;
    letter-spacing: 0.3px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: var(--pn-blue);
    color: white;
}

.btn-primary:hover {
    background: #012e8a;
    color: white;
}

.btn-success {
    background: var(--pn-green);
    color: white;
}

.btn-success:hover {
    background: #055321;
    color: white;
}

.btn-secondary {
    background: #64748b;
    color: white;
}

.btn-secondary:hover {
    background: #475569;
    color: white;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.modal-content {
    border-radius: 20px;
    border: none;
    box-shadow: var(--shadow-lg);
}

.modal-header {
    padding: 1.75rem 2rem;
    border-bottom: 2px solid var(--border-color);
    background: linear-gradient(to bottom, #f8fafc 0%, white 100%);
}

.modal-title {
    font-size: 1.35rem;
    font-weight: 700;
}

.modal-body {
    padding: 2.5rem 2rem;
}

.modal-footer {
    padding: 1.5rem 2rem 2rem;
    border-top: none;
}

.otp-input {
    width: 100%;
    height: 70px;
    text-align: center;
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: 1.2rem;
    border: 3px solid var(--border-color);
    border-radius: 14px;
    background: #f8fafc;
    transition: var(--transition);
}

.otp-input:focus {
    border-color: var(--pn-green);
    box-shadow: 0 0 0 5px var(--pn-light-green);
    outline: none;
    background: white;
}

.btn-link {
    color: var(--pn-blue);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.btn-link:hover {
    color: #012e8a;
    text-decoration: underline;
}

.btn-link:disabled {
    color: #94a3b8;
    cursor: not-allowed;
}

.alert {
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    border: none;
    font-weight: 500;
}

.alert-success {
    background: linear-gradient(135deg, var(--pn-light-green) 0%, rgba(6, 115, 42, 0.05) 100%);
    color: var(--pn-green);
    border-left: 4px solid var(--pn-green);
}

.alert-danger {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    color: #dc2626;
    border-left: 4px solid #dc2626;
}

@media (max-width: 768px) {
    .pn-header {
        padding: 3rem 1rem 8rem;
    }

    .pn-header h1 {
        font-size: 1.85rem;
    }

    .pn-header p {
        font-size: 1rem;
    }

    .logo-container {
        width: 85px;
        height: 85px;
        font-size: 2.3rem;
    }

    .pn-container {
        margin-top: -6rem;
        padding: 0 1rem;
    }

    .pn-card {
        border-radius: 20px;
    }

    .stepper-wrapper {
        padding: 2rem 1rem;
    }

    .step-label {
        font-size: 0.75rem;
    }

    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .form-content {
        padding: 2rem 1.5rem;
    }

    .section-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .section-header::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .section-title {
        font-size: 1.25rem;
    }

    .form-actions {
        flex-direction: column-reverse;
        gap: 0.75rem;
    }

    .btn {
        width: 100%;
        justify-content: center;
        padding: 1rem;
    }

    .file-upload-wrapper {
        padding: 2rem 1rem;
    }

    .file-upload-icon {
        font-size: 2.5rem;
    }

    .modal-body {
        padding: 2rem 1.5rem;
    }

    .otp-input {
        height: 65px;
        font-size: 2rem;
        letter-spacing: 0.8rem;
    }
}

@media (max-width: 576px) {
    .step-label {
        display: none;
    }

    .step-number {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }

    .step-item.active .step-number {
        transform: scale(1.1);
    }

    .stepper {
        max-width: 100%;
    }
}

.form-control:disabled, .form-select:disabled {
    background-color: #f1f5f9;
    cursor: not-allowed;
    opacity: 0.7;
}

::placeholder {
    color: #94a3b8;
    opacity: 1;
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.btn:focus-visible, .form-control:focus-visible, .form-select:focus-visible {
    outline: 3px solid var(--pn-blue);
    outline-offset: 2px;
}

.btn.loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

a, button, input, select, textarea {
    transition: var(--transition);
}

@media print {
    .pn-header, .stepper-wrapper, .form-actions, .btn {
        display: none;
    }

    .pn-card {
        box-shadow: none;
        border: 1px solid #000;
    }
}