﻿:root {
    --primary-dark: rgb(33, 33, 32);
    --primary-gray: rgb(135, 136, 136);
    --primary-orange: rgb(255, 99, 25);
    --primary-white: rgb(255, 255, 255);
    --primary-light-gray: rgb(245, 245, 245);
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
    --border-radius: 8px;
}

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

body {
    font-family: 'Poppins', 'Segoe UI', Arial, sans-serif;
    background-color: #f7f7f7;
    color: var(--primary-dark);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header Styles */
.app-header {
    background-color: #333333;
    color: var(--primary-white);
    padding: 1rem 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-link, .title-link {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s ease;
}

    .logo-link:hover, .title-link:hover {
        opacity: 0.9;
    }

.mict-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-white);
}

.header-actions {
    display: flex;
    align-items: center;
}

.help-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-white);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

    .help-link:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }

    .help-link i {
        font-size: 1.2rem;
    }

/* Main Container */
.container {
    max-width: 1200px;
    width: 100%;
    margin: 2rem auto;
    padding: 0 2rem;
    flex: 1;
}

.form-container {
    background-color: var(--primary-white);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    box-shadow: var(--shadow);
    position: relative;
    overflow: visible;
    min-height: 600px;
}

/* Progress Bar and Steps */
.progress-container {
    margin-bottom: 3rem;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    position: relative;
}

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

.step-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-light-gray);
    color: var(--primary-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-bottom: 0.5rem;
    transition: var(--transition);
    border: 2px solid transparent;
}

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

.progress-step.active .step-icon {
    background-color: var(--primary-orange);
    color: var(--primary-white);
    border-color: var(--primary-orange);
}

.progress-step.active .step-label {
    color: var(--primary-dark);
    font-weight: 500;
}

.progress-step.completed .step-icon {
    background-color: #4CAF50;
    color: var(--primary-white);
    border-color: #4CAF50;
}

.progress-bar {
    height: 6px;
    background-color: var(--primary-light-gray);
    border-radius: 3px;
    margin-top: 1rem;
    overflow: hidden;
    position: relative;
}

.progress {
    height: 100%;
    background-color: var(--primary-orange);
    width: 0%;
    transition: width 0.5s ease;
}

/* Form Steps */
.form-step {
    position: relative;
    width: 100%;
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.5s ease;
    display: none;
}

    .form-step.active {
        opacity: 1;
        transform: translateX(0);
        display: block;
        animation: fadeIn 0.5s ease forwards;
    }

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

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

.form-step.slide-out {
    animation: slideOut 0.5s ease forwards;
}

@keyframes slideOut {
    to {
        opacity: 0;
        transform: translateX(-50px);
    }
}

.form-step.slide-out-reverse {
    animation: slideOutReverse 0.5s ease forwards;
}

@keyframes slideOutReverse {
    to {
        opacity: 0;
        transform: translateX(50px);
    }
}

/* Step Header */
.step-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

    .step-header h2 {
        color: var(--primary-dark);
        font-size: 2rem;
        font-weight: 600;
        margin-bottom: 0.5rem;
        position: relative;
        display: inline-block;
    }

        .step-header h2:after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 50%;
            transform: translateX(-50%);
            width: 80px;
            height: 4px;
            background-color: var(--primary-orange);
            border-radius: 2px;
        }

.step-description {
    color: var(--primary-gray);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 1.5rem auto 0;
}

/* Category Grid */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.category-btn {
    background-color: var(--primary-white);
    color: var(--primary-dark);
    border: 1px solid #e0e0e0;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    text-align: left;
    height: 120px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.category-icon {
    background-color: rgba(255, 99, 25, 0.1);
    color: var(--primary-orange);
    width: 100px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

    .category-icon i {
        font-size: 2.5rem;
        transition: var(--transition);
    }

.category-info {
    padding: 1rem 1.5rem;
    flex: 1;
}

.category-title {
    display: block;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--primary-dark);
}

.category-desc {
    display: block;
    font-size: 0.9rem;
    color: var(--primary-gray);
    line-height: 1.4;
}

.category-btn:hover {
    transform: translateY(-5px);
    border-color: var(--primary-orange);
    box-shadow: 0 10px 20px rgba(255, 99, 25, 0.1);
}

    .category-btn:hover .category-icon {
        background-color: var(--primary-orange);
        color: var(--primary-white);
    }

        .category-btn:hover .category-icon i {
            transform: scale(1.2);
        }

/* Form Styles */
.form-group {
    margin-bottom: 1.8rem;
    position: relative;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--primary-dark);
    font-weight: 500;
    font-size: 0.95rem;
}

.required-field label:after {
    content: " *";
    color: var(--primary-orange);
    font-weight: bold;
}

input, select, textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 1px solid #e0e0e0;
    border-radius: var(--border-radius);
    background-color: var(--primary-white);
    color: var(--primary-dark);
    transition: var(--transition);
    font-family: inherit;
    font-size: 1rem;
}

/* Add extra padding for inputs that have status indicators */
.form-group input:not([type="checkbox"]):not([type="radio"]):not([type="file"]) {
    padding-right: 75px;
}

input:focus, select:focus, textarea:focus {
    border-color: var(--primary-orange);
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 99, 25, 0.1);
}

input.error, select.error, textarea.error {
    border-color: #ff3333;
    background-color: rgba(255, 51, 51, 0.05);
}

.error-message {
    color: #ff3333;
    font-size: 0.85rem;
    margin-top: 0.3rem;
    display: none;
}

.form-group.error .error-message {
    display: block;
}

textarea {
    min-height: 120px;
    resize: vertical;
}

.form-row {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.form-col {
    flex: 1;
}

h3 {
    color: var(--primary-dark);
    margin: 2rem 0 1.5rem;
    font-size: 1.3rem;
    font-weight: 600;
    position: relative;
    padding-left: 1rem;
    border-left: 4px solid var(--primary-orange);
}

.section-divider {
    border-top: 1px solid #e0e0e0;
    margin: 2.5rem 0;
    position: relative;
}

    .section-divider::before {
        content: attr(data-title);
        position: absolute;
        top: -12px;
        left: 50%;
        transform: translateX(-50%);
        background-color: var(--primary-white);
        padding: 0 1rem;
        color: var(--primary-gray);
        font-size: 0.9rem;
        font-weight: 500;
    }

/* Button Styles */
.btn-group {
    display: flex;
    justify-content: space-between;
    margin-top: 2.5rem;
}

.btn {
    background-color: var(--primary-orange);
    color: var(--primary-white);
    padding: 0.9rem 1.8rem;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

    .btn::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 5px;
        height: 5px;
        background: rgba(255, 255, 255, 0.5);
        opacity: 0;
        border-radius: 100%;
        transform: scale(1, 1) translate(-50%);
        transform-origin: 50% 50%;
    }

    .btn:focus:not(:active)::after {
        animation: ripple 1s ease-out;
    }

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }

    20% {
        transform: scale(25, 25);
        opacity: 0.5;
    }

    100% {
        opacity: 0;
        transform: scale(40, 40);
    }
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 14px rgba(255, 99, 25, 0.2);
}

.btn:active {
    transform: translateY(-1px);
}

.btn-back {
    background-color: transparent;
    color: var(--primary-dark);
    border: 1px solid #e0e0e0;
}

    .btn-back:hover {
        border-color: var(--primary-orange);
        color: var(--primary-orange);
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.05);
    }

/* Loading Button Animation */
.btn-loading {
    pointer-events: none;
}

    .btn-loading .btn-text {
        visibility: hidden;
        opacity: 0;
    }

.loading-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-white);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Verification Step */
.verification-step {
    max-width: 700px;
    margin: 0 auto;
}

.step-indicator {
    background-color: var(--primary-orange);
    color: var(--primary-white);
    padding: 0.7rem 1.2rem;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
    font-weight: 500;
    display: inline-block;
}

.captcha-section {
    margin: 2rem 0;
}

.captcha-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background-color: #f9f9f9;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

#captchaBox {
    position: relative;
    background: linear-gradient(45deg, #f0f0f0 25%, #e8e8e8 25%, #e8e8e8 50%, #f0f0f0 50%, #f0f0f0 75%, #e8e8e8 75%, #e8e8e8);
    background-size: 4px 4px;
    padding: 1rem;
    border-radius: var(--border-radius);
    font-family: 'Courier New', monospace;
    letter-spacing: 4px;
    user-select: none;
    text-align: center;
    overflow: hidden;
    border: 1px solid #ddd;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.captcha-input-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}

#captchaInput {
    flex: 1;
    text-align: center;
    letter-spacing: 3px;
    font-size: 1.2rem;
    font-family: 'Courier New', monospace;
}

.btn-icon {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--primary-orange);
    font-size: 1.2rem;
    padding: 0.8rem;
    transition: all 0.3s ease;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 99, 25, 0.1);
}

    .btn-icon:hover {
        background-color: rgba(255, 99, 25, 0.2);
        transform: rotate(180deg);
    }

/* Terms and Conditions */
.terms-container {
    margin: 2.5rem 0;
    border: 1px solid #e0e0e0;
    border-radius: var(--border-radius);
    overflow: hidden;
}

    .terms-container h4 {
        background-color: var(--primary-dark);
        color: var(--primary-white);
        padding: 1rem 1.5rem;
        margin: 0;
        font-size: 1.1rem;
        letter-spacing: 0.5px;
    }

.terms-text {
    max-height: 200px;
    overflow-y: auto;
    padding: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--primary-dark);
    background-color: #f9f9f9;
}

    .terms-text::-webkit-scrollbar {
        width: 8px;
    }

    .terms-text::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 4px;
    }

    .terms-text::-webkit-scrollbar-thumb {
        background: var(--primary-gray);
        border-radius: 4px;
    }

    .terms-text ul {
        padding-left: 1.5rem;
        margin: 1rem 0;
    }

    .terms-text li {
        margin-bottom: 0.8rem;
        position: relative;
    }

.terms-checkbox {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background-color: #f0f0f0;
}

    .terms-checkbox input[type="checkbox"] {
        width: 18px;
        height: 18px;
        cursor: pointer;
    }

    .terms-checkbox label {
        margin: 0;
        font-size: 0.95rem;
        cursor: pointer;
    }

/* Success Message */
.success-message {
    text-align: center;
    padding: 3rem 2rem;
    animation: fadeIn 0.8s ease-out;
    max-width: 600px;
    margin: 0 auto;
}

    .success-message h2 {
        color: #4CAF50;
        margin: 1.5rem 0;
        font-size: 1.8rem;
    }

    .success-message p {
        margin-bottom: 1rem;
        font-size: 1.1rem;
        color: var(--primary-dark);
    }

.reference-number {
    background-color: #f5f5f5;
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-dark);
    display: inline-block;
    margin: 1.5rem 0;
    border: 2px dashed var(--primary-orange);
    letter-spacing: 1px;
}

.btn-submit-another {
    background-color: var(--primary-orange);
    color: var(--primary-white);
    padding: 0.9rem 1.8rem;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

    .btn-submit-another:hover {
        background-color: var(--primary-dark);
        transform: translateY(-3px);
        box-shadow: 0 7px 14px rgba(0, 0, 0, 0.1);
    }

/* Checkmark Animation */
.checkmark {
    width: 100px;
    height: 100px;
    display: block;
    margin: 0 auto;
    position: relative;
}

.checkmark-circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 2;
    stroke-miterlimit: 10;
    stroke: #4CAF50;
    fill: none;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark-check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    stroke: #4CAF50;
    stroke-width: 3;
    fill: none;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes stroke {
    100% {
        stroke-dashoffset: 0;
    }
}

/* Footer */
.app-footer {
    background-color: var(--primary-dark);
    color: var(--primary-white);
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.footer-logo-img {
    height: 40px;
    width: auto;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

    .footer-links a {
        color: var(--primary-white);
        text-decoration: none;
        transition: var(--transition);
    }

        .footer-links a:hover {
            color: var(--primary-orange);
        }

.footer-copyright {
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .category-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .form-container {
        padding: 2rem 1.5rem;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .category-grid {
        grid-template-columns: 1fr;
    }

    .progress-steps {
        display: none;
    }

    .step-indicator {
        width: 100%;
        text-align: center;
    }

    .captcha-input-group {
        flex-direction: column;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .header-content {
        padding: 0 1rem;
    }

    .container {
        padding: 0 1rem;
        margin: 1rem auto;
    }

    .form-container {
        padding: 1.5rem 1rem;
    }

    .logo h1 {
        font-size: 1.2rem;
    }

    .mict-logo {
        height: 30px;
    }

    .step-header h2 {
        font-size: 1.5rem;
    }

    .step-description {
        font-size: 0.9rem;
    }

    .btn {
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
    }

    .category-btn {
        height: 100px;
    }

    .category-icon {
        width: 80px;
    }

        .category-icon i {
            font-size: 1.8rem;
        }

    .category-title {
        font-size: 1rem;
    }

    .category-desc {
        font-size: 0.8rem;
    }
}

/* Attachment Styles */
.attachment-categories {
    display: flex;
    gap: 2rem;
    margin-bottom: 1rem;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-check-input {
    width: 18px;
    height: 18px;
    cursor: pointer;
    margin: 0;
    padding: 0;
    border: 1px solid #e0e0e0;
    transition: var(--transition);
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: var(--primary-white);
    position: relative;
}

/* Radio button styling */
input[type="radio"].form-check-input {
    border-radius: 50%;
}

input[type="radio"].form-check-input:checked {
    background-color: var(--primary-orange);
    border-color: var(--primary-orange);
    box-shadow: inset 0 0 0 3px var(--primary-white);
}

input[type="radio"].form-check-input:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    background-color: var(--primary-white);
    border-radius: 50%;
}

/* Checkbox styling (if needed in future) */
input[type="checkbox"].form-check-input {
    border-radius: 4px;
}

input[type="checkbox"].form-check-input:checked {
    background-color: var(--primary-orange);
    border-color: var(--primary-orange);
}

.form-check-label {
    margin: 0;
    cursor: pointer;
    font-weight: 500;
    color: var(--primary-dark);
}

.attachment-upload-container {
    margin-bottom: 1rem;
}

.attachment-upload-container input[type="file"] {
    padding: 0.5rem;
    border: 2px dashed #e0e0e0;
    border-radius: var(--border-radius);
    background-color: #f9f9f9;
    cursor: pointer;
    transition: var(--transition);
}

.attachment-upload-container input[type="file"]:hover {
    border-color: var(--primary-orange);
    background-color: rgba(255, 99, 25, 0.05);
}

.form-text {
    display: block;
    margin-top: 0.3rem;
    font-size: 0.85rem;
    color: var(--primary-gray);
}

.text-muted {
    color: var(--primary-gray);
}

.uploaded-files-list {
    margin-top: 1rem;
}

.uploaded-files-table {
    width: 100%;
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 0;
}

.table thead {
    background-color: #f5f5f5;
}

.table th {
    padding: 0.75rem;
    text-align: left;
    font-weight: 600;
    color: var(--primary-dark);
    border-bottom: 2px solid #e0e0e0;
}

.table td {
    padding: 0.75rem;
    border-bottom: 1px solid #e0e0e0;
    color: var(--primary-dark);
}

.table tbody tr:hover {
    background-color: #f9f9f9;
}

.btn-sm {
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
}

.btn-secondary {
    background-color: #6c757d;
    color: var(--primary-white);
}

.btn-secondary:hover {
    background-color: #5a6268;
    transform: translateY(-2px);
}

.btn-danger {
    background-color: #dc3545;
    color: var(--primary-white);
}

.btn-danger:hover {
    background-color: #c82333;
    transform: translateY(-2px);
}

.attachment-upload-section,
.attachment-files-section {
    animation: slideDown 0.3s ease-out;
}

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

/* Verification Code Input Styles */
.code-inputs {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 2rem 0;
}

.code-input {
    width: 50px;
    height: 60px;
    padding: 0;
    text-align: center;
    font-size: 24px;
    border: 2px solid #e0e0e0;
    border-radius: var(--border-radius);
    transition: var(--transition);
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

.code-input:focus {
    border-color: var(--primary-orange);
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 99, 25, 0.1);
}

.verification-footer {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.resend-timer {
    color: var(--primary-gray);
}

.resend-btn {
    background: none;
    border: none;
    color: var(--primary-orange);
    cursor: pointer;
    text-decoration: underline;
}

.resend-btn:disabled {
    color: var(--primary-gray);
    cursor: not-allowed;
    text-decoration: none;
}

/* Summary Panel Styles */
.summary-panel {
    background-color: #f9f9f9;
    border-radius: var(--border-radius);
    padding: 2rem;
    border: 1px solid #e0e0e0;
}

.summary-section {
    margin-bottom: 2rem;
}

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

.summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-orange);
}

.summary-header h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-dark);
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    font-size: 1rem;
}

.summary-item-label {
    font-weight: 500;
    color: var(--primary-gray);
}

.summary-item-value {
    font-weight: 600;
    color: var(--primary-dark);
    text-align: right;
}

/* Status Indicator Styles */
.status-indicator {
    position: absolute;
    right: 12px;
    top: 38px; /* Fixed position from top of form-group */
    font-size: 0.85rem;
    font-weight: 600;
    pointer-events: none;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 48px; /* Match input height */
}

    .status-indicator .spinner {
        width: 16px;
        height: 16px;
        border: 2px solid rgba(0, 0, 0, 0.1);
        border-top-color: var(--primary-orange);
        border-radius: 50%;
        animation: spin 0.8s linear infinite;
    }

    .status-indicator.valid span {
        color: #4CAF50;
    }

    .status-indicator.error span {
        color: #ff3333;
    }

    .status-indicator.checking span {
        color: var(--primary-orange);
    }

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


/* Terms Resizer Styles */
.terms-text-wrapper {
    position: relative;
}

.terms-text {
    height: 200px;
    max-height: none;
    overflow-y: auto;
    padding: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--primary-dark);
    background-color: #f9f9f9;
}

.terms-resizer {
    height: 10px;
    background-color: #e0e0e0;
    cursor: ns-resize;
    position: relative;
    transition: background-color 0.2s ease;
}

    .terms-resizer:hover {
        background-color: var(--primary-orange);
    }

    .terms-resizer::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 30px;
        height: 3px;
        background-color: var(--primary-gray);
        border-radius: 2px;
    }

    .terms-resizer:hover::before {
        background-color: var(--primary-white);
    }

/* Error Toast Notification Styles */
#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

.error-toast {
    background-color: #f44336;
    color: white;
    padding: 16px;
    border-radius: 4px;
    margin-bottom: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    min-width: 300px;
    max-width: 400px;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.3s, transform 0.3s;
}

    .error-toast i {
        margin-right: 10px;
        font-size: 20px;
    }

    .error-toast .fa-times {
        margin-left: auto;
        margin-right: 0;
        cursor: pointer;
    }

        .error-toast .fa-times:hover {
            opacity: 0.8;
        }


/* Attachment Categories Error Styling */
.form-group.error .attachment-categories {
    border: 2px solid #dc3545;
    padding: 12px;
    border-radius: 6px;
    background-color: #fff5f5;
    animation: shake 0.3s;
}

.form-group.error #attachmentCategoryError {
    display: block !important;
    color: #dc3545;
    font-size: 14px;
    margin-top: 10px;
    padding: 10px 12px;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    animation: slideDown 0.3s ease;
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-8px);
    }

    75% {
        transform: translateX(8px);
    }
}

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

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

/* Attachment note styling */
.attachment-note {
    margin-top: 12px;
    padding: 12px;
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    border-radius: 4px;
}

    .attachment-note a {
        color: #FF6319;
        text-decoration: none;
        font-weight: 600;
        font-size: 14px;
    }

        .attachment-note a:hover {
            text-decoration: underline;
        }



/* Crew Name Input with Plus Button */
.crew-input-wrapper {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 12px;
}

    .crew-input-wrapper input {
        flex: 1;
    }

.btn-add-crew {
    width: 48px;
    height: 48px;
    background-color: var(--primary-orange);
    color: var(--primary-white);
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 1.2rem;
    flex-shrink: 0;
}

    .btn-add-crew:hover {
        background-color: var(--primary-dark);
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(255, 99, 25, 0.3);
    }

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

    .btn-add-crew:disabled {
        background-color: var(--primary-gray);
        cursor: not-allowed;
        transform: none;
    }

/* Crew Tags List */
.crew-tags-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
    min-height: 20px;
}

.crew-tag-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: var(--border-radius);
    padding: 10px 12px;
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
}

    .crew-tag-item:hover {
        background-color: #e9ecef;
        border-color: var(--primary-orange);
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

    .crew-tag-item.editing {
        background-color: #fff3e0;
        border-color: var(--primary-orange);
        border-width: 2px;
    }

.crew-tag-content {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.crew-tag-number {
    width: 24px;
    height: 24px;
    background-color: var(--primary-orange);
    color: var(--primary-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 600;
    flex-shrink: 0;
}

.crew-tag-name {
    font-size: 0.95rem;
    color: var(--primary-dark);
    font-weight: 500;
    flex: 1;
}

    .crew-tag-name input {
        width: 100%;
        border: none;
        background: transparent;
        font-size: 0.95rem;
        font-weight: 500;
        color: var(--primary-dark);
        padding: 0;
        outline: none;
    }

.crew-tag-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.crew-tag-edit-hint {
    font-size: 0.75rem;
    color: var(--primary-gray);
    font-style: italic;
    margin-right: 8px;
}

.crew-tag-btn {
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.crew-tag-btn-save {
    background-color: #28a745;
    color: white;
}

    .crew-tag-btn-save:hover {
        background-color: #218838;
    }

.crew-tag-btn-cancel {
    background-color: var(--primary-gray);
    color: white;
}

    .crew-tag-btn-cancel:hover {
        background-color: #5a6268;
    }

.crew-tag-btn-remove {
    background-color: #dc3545;
    color: white;
}

    .crew-tag-btn-remove:hover {
        background-color: #c82333;
    }

.crew-tags-empty {
    color: var(--primary-gray);
    font-style: italic;
    font-size: 0.9rem;
    padding: 12px;
    text-align: center;
    background-color: #f8f9fa;
    border: 1px dashed #dee2e6;
    border-radius: var(--border-radius);
}

/* Animation for adding/removing tags */
@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

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

.crew-tag-item {
    animation: slideInDown 0.3s ease;
}


/* ========== COMING SOON / DISABLED CATEGORY STYLES ========== */

/* Disabled category button - keeps same structure as active buttons */
.category-btn-disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none; /* Makes it completely unclickable */
    user-select: none;
    filter: grayscale(100%); /* Full grayscale for obvious disabled state */
    background-color: #f5f5f5 !important;
}

    /* Remove hover effects for disabled categories */
    .category-btn-disabled:hover {
        transform: none !important;
        border-color: #e0e0e0 !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
    }

    /* Gray out the icon */
    .category-btn-disabled .category-icon {
        background-color: rgba(135, 136, 136, 0.1) !important;
        color: var(--primary-gray) !important;
    }

    /* Prevent icon color change on hover */
    .category-btn-disabled:hover .category-icon {
        background-color: rgba(135, 136, 136, 0.1) !important;
        color: var(--primary-gray) !important;
    }

        /* Prevent icon animation on hover */
        .category-btn-disabled:hover .category-icon i {
            transform: none !important;
        }

    /* Gray out the title */
    .category-btn-disabled .category-title {
        color: var(--primary-gray) !important;
    }

    /* Hide the description for disabled buttons */
    .category-btn-disabled .category-desc {
        display: none;
    }

/* Coming Soon Badge - yellow to stand out from gray */
.coming-soon-badge {
    display: inline-block;
    background-color: #ffc107;
    color: #000;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ========== ALTERNATIVE BADGE STYLES (Optional) ========== */

/* Option 1: Orange Badge (matches MICT theme) */

.coming-soon-badge {
    background-color: var(--primary-orange);
    color: #fff;
}


/* Option 2: Animated Purple Gradient */

.coming-soon-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}


/* Option 3: "Stay Tuned" text instead */

.coming-soon-badge {
    background-color: #17a2b8;
    color: #fff;
}
.coming-soon-badge::before {
    content: "⏰ ";
}
