/* ===========================================
   RESET & BASE STYLES
   =========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #2563EB;
    --primary-blue-dark: #1E40AF;
    --primary-blue-light: #3B82F6;
    --secondary-blue: #60A5FA;
    --background-light: #F8FAFC;
    --text-dark: #1E293B;
    --text-gray: #64748B;
    --border-color: #E2E8F0;
    --error-color: #EF4444;
    --success-color: #10B981;
    --warning-color: #F59E0B;
    --white: #FFFFFF;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--background-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===========================================
   HEADER
   =========================================== */
.header {
    background: #EBF4FA;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top-bar {
    height: 4px;
    background: #64748B;
    width: 100%;
}

.header-bottom-bar {
    height: 4px;
    background: #1A2B63;
    width: 100%;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    padding: 16px 0;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex: 1;
    justify-content: center;
}

.header-contact {
    position: absolute;
    right: 0;
}

.logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.menu-toggle span {
    width: 100%;
    height: 3px;
    background: #1A2B63;
    border-radius: 3px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

.nav {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.nav-link {
    color: #1A2B63;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--primary-blue);
}

.nav-link.active {
    color: #1A2B63;
    font-weight: 600;
}

.header-contact {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    position: absolute;
    right: 0;
}

.btn-support {
    background: #1A2B63;
    color: var(--white);
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.btn-support:hover {
    background: #15204A;
}

.btn-login {
    background: #1A2B63;
    color: var(--white);
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
    display: inline-block;
    white-space: nowrap;
}

.btn-login:hover {
    background: #15204A;
}

/* ===========================================
   HERO SECTION
   =========================================== */
.hero {
    background: linear-gradient(135deg, var(--primary-blue-dark) 0%, var(--primary-blue) 100%);
    padding: 30px 0;
    position: relative;
    overflow: hidden;
}

.hero::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.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.hero-icon {
    margin-bottom: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--white);
    text-align: center;
    margin: 0;
    line-height: 1.4;
}

/* ===========================================
   MAIN CONTENT
   =========================================== */
.main-content {
    padding: 40px 0;
}

.form-wrapper {
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    padding: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.form-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 24px;
    text-transform: uppercase;
}

/* ===========================================
   FORM SECTIONS
   =========================================== */
.form-section {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 2px solid var(--border-color);
}

.form-section:last-of-type {
    border-bottom: none;
}

.section-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 13px;
    color: var(--text-gray);
    margin-bottom: 16px;
    font-style: italic;
}

/* ===========================================
   FORM GROUPS
   =========================================== */
.form-fields-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.form-fields-row-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

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

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-label {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 6px;
    font-size: 14px;
}

.required {
    color: var(--error-color);
    margin-left: 2px;
}

.form-input {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
    background-color: #F5F5F5;
    color: var(--text-dark);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    background-color: var(--white);
}

.form-input:invalid:not(:placeholder-shown) {
    border-color: var(--error-color);
}

.form-note {
    margin-top: 8px;
    font-size: 13px;
    color: var(--error-color);
    font-style: italic;
}

/* ===========================================
   FILE UPLOAD
   =========================================== */
.file-upload-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.file-input {
    display: none;
}

.btn-upload {
    background: var(--primary-blue);
    color: var(--white);
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s;
    white-space: nowrap;
}

.btn-upload:hover {
    background: var(--primary-blue-dark);
}

.upload-icon {
    font-size: 18px;
}

.file-hint {
    background: var(--warning-color);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
}

.file-hint-text {
    display: inline;
    color: var(--text-gray);
    font-size: 13px;
    font-weight: 400;
    font-style: italic;
    margin-left: 4px;
}

.file-name {
    color: var(--text-gray);
    font-size: 14px;
    flex: 1;
    min-width: 200px;
}

/* ===========================================
   ADD MORE SECTIONS
   =========================================== */
.add-more-section {
    margin-bottom: 20px;
    text-align: left;
}

.btn-add-more {
    background: var(--warning-color);
    color: var(--white);
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.btn-add-more:hover {
    background: #D97706;
}

.btn-add-more:hover {
    background: #D97706;
}


/* ===========================================
   DYNAMIC ITEMS (CCV, NVNV, NVKT)
   =========================================== */
.ccv-item,
.nvnv-item,
.nvkt-item {
    background: var(--background-light);
    padding: 16px;
    padding-top: 24px;
    border-radius: 8px;
    margin-bottom: 16px;
    border: 2px solid var(--border-color);
    position: relative;
}

.ccv-item::before,
.nvnv-item::before,
.nvkt-item::before {
    content: attr(data-index);
    position: absolute;
    top: -12px;
    right: 20px;
    background: var(--primary-blue);
    color: var(--white);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    z-index: 1;
}

.btn-delete-item {
    background: var(--error-color);
    color: var(--white);
    border: none;
    padding: 6px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    line-height: 1;
}

.btn-delete-item:hover {
    background: #DC2626;
}

.btn-delete-item:active {
    transform: scale(0.98);
}

.btn-add-item {
    background: var(--success-color);
    color: var(--white);
    border: none;
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    gap: 4px;
}

.btn-add-item:hover {
    background: #059669;
}

.btn-add-item:active {
    transform: scale(0.98);
}

/* ===========================================
   LOADING OVERLAY
   =========================================== */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(4px);
}

.loading-content {
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    min-width: 300px;
}

.loading-content .spinner {
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--primary-blue);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

.loading-content p {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
}

.loading-subtitle {
    margin-top: 8px !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    color: var(--text-gray) !important;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Disable form when loading */
.form-disabled {
    pointer-events: none;
    opacity: 0.6;
}

.form-disabled input,
.form-disabled button,
.form-disabled select,
.form-disabled textarea {
    cursor: not-allowed;
}

/* ===========================================
   CONFIRMATION MODAL
   =========================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(4px);
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    min-width: 400px;
    max-width: 500px;
    width: 90%;
    animation: slideUp 0.3s ease;
}

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

.modal-header {
    padding: 20px 24px;
    border-bottom: 2px solid var(--border-color);
}

.modal-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
}

.modal-body {
    padding: 24px;
}

.modal-body p {
    margin: 0;
    font-size: 15px;
    color: var(--text-dark);
    line-height: 1.6;
}

.modal-actions {
    padding: 16px 24px;
    border-top: 2px solid var(--border-color);
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.btn-modal-cancel,
.btn-modal-confirm {
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid;
}

.btn-modal-cancel {
    background: var(--white);
    color: var(--text-dark);
    border-color: var(--border-color);
}

.btn-modal-cancel:hover {
    background: var(--background-light);
    border-color: var(--text-gray);
}

.btn-modal-confirm {
    background: var(--error-color);
    color: var(--white);
    border-color: var(--error-color);
}

.btn-modal-confirm:hover {
    background: #DC2626;
    border-color: #DC2626;
}

.message-container {
    margin-bottom: 24px;
}

.message {
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 12px;
    font-weight: 500;
}

.message.success {
    background: #D1FAE5;
    color: #065F46;
    border: 2px solid var(--success-color);
}

.message.error {
    background: #FEE2E2;
    color: #991B1B;
    border: 2px solid var(--error-color);
}

/* ===========================================
   FORM ACTIONS
   =========================================== */
.form-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 2px solid var(--border-color);
}

.btn-primary,
.btn-secondary {
    padding: 16px 48px;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid;
    box-shadow: var(--shadow-md);
    letter-spacing: 0.5px;
    min-width: 200px;
}

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

.btn-primary:hover:not(:disabled) {
    background: var(--primary-blue-dark);
    border-color: var(--primary-blue-dark);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.btn-primary:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    background: #94A3B8;
    border-color: #94A3B8;
}

.btn-secondary {
    background: var(--white);
    color: var(--text-dark);
    border-color: var(--border-color);
}

.btn-secondary:hover {
    background: var(--background-light);
    border-color: var(--text-gray);
}

/* ===========================================
   FOOTER
   =========================================== */
.footer {
    background: #1A2B63;
    color: var(--white);
    padding: 48px 0 24px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.footer-section {
    display: flex;
    flex-direction: column;
}

/* Footer Company Section */
.footer-company {
    max-width: 350px;
}

.footer-logo {
    margin-bottom: 16px;
}

.footer-logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.footer-company-name {
    font-size: 14px;
    line-height: 1.6;
    color: #B8C5D6;
    margin-bottom: 20px;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: var(--white);
    line-height: 1.5;
}

.footer-contact-item svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: #60A5FA;
}

/* Footer Social Section */
.footer-social {
    align-items: center;
    text-align: center;
}

.footer-social-icons {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 24px;
}

.social-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: opacity 0.2s;
    text-decoration: none;
}

.social-icon:hover {
    opacity: 0.8;
}

.social-facebook {
    background: #1877F2;
    color: var(--white);
}

.social-youtube {
    background: #FF0000;
    color: var(--white);
}

.footer-qr-codes {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.qr-code-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.qr-code-img {
    width: 140px;
    height: 140px;
    object-fit: contain;
    background: var(--white);
    padding: 8px;
    border-radius: 4px;
}

.qr-code-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--white);
}

/* Footer Links Section */
.footer-links {
    max-width: 250px;
}

.footer-links-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--white);
}

.footer-links-list {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-link {
    color: #B8C5D6;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
    display: inline-block;
}

.footer-link:hover {
    color: var(--white);
}

.footer-copyright {
    font-size: 12px;
    color: #8B9DC3;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===========================================
   RESPONSIVE DESIGN
   =========================================== */
@media (max-width: 992px) {
    .header-content {
        gap: 16px;
    }

    .nav {
        gap: 16px;
    }

    .nav-link {
        font-size: 14px;
    }

    .btn-support,
    .btn-login {
        font-size: 13px;
        padding: 10px 14px;
    }
}

@media (max-width: 768px) {
    .form-fields-row,
    .form-fields-row-3 {
        grid-template-columns: 1fr;
    }
    
    /* Prevent zoom on input focus on mobile */
    .form-input,
    input[type="text"],
    input[type="tel"],
    input[type="email"],
    input[type="file"],
    select,
    textarea {
        font-size: 16px !important;
    }
    
    .header-content {
        flex-wrap: nowrap;
        align-items: center;
        gap: 16px;
        padding: 12px 0;
        position: relative;
        justify-content: center;
    }

    .logo {
        flex: 1;
        justify-content: center;
    }

    .logo-img {
        height: 40px;
    }

    .header-contact {
        display: none;
    }

    .btn-support,
    .btn-login {
        width: 100%;
        justify-content: center;
        padding: 12px 16px;
    }

    .hero {
        padding: 20px 0;
    }

    .hero-title {
        font-size: 18px;
    }

    .form-wrapper {
        padding: 24px;
        margin: 0 16px;
    }

    .form-title {
        font-size: 22px;
    }

    .section-title {
        font-size: 18px;
    }

    .file-upload-wrapper {
        flex-direction: column;
        align-items: flex-start;
    }

    .btn-upload {
        width: 100%;
        justify-content: center;
    }

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

    .btn-primary,
    .btn-secondary {
        width: 100%;
        padding: 14px 32px;
        font-size: 16px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }

    .footer-company {
        max-width: 100%;
        align-items: center;
    }

    .footer-contact {
        align-items: center;
    }

    .footer-contact-item {
        justify-content: center;
    }

    .footer-links {
        max-width: 100%;
        align-items: center;
    }

    .footer-links-list {
        align-items: center;
    }

    .footer-qr-codes {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .header-content {
        padding: 10px 0;
        gap: 12px;
    }

    .logo-img {
        height: 35px;
    }

    .nav {
        gap: 12px;
        flex-wrap: wrap;
    }

    .nav-link {
        font-size: 13px;
    }

    .btn-support,
    .btn-login {
        font-size: 13px;
        padding: 10px 12px;
    }

    .form-wrapper {
        padding: 20px;
        margin: 0 8px;
    }

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

/* ===========================================
   PRINT STYLES
   =========================================== */
@media print {
    .header,
    .hero,
    .footer,
    .form-actions,
    .add-more-section {
        display: none;
    }

    .form-wrapper {
        box-shadow: none;
        padding: 0;
    }
}

