@font-face {
    font-family: 'Vazirmatn';
    src: url('../../fonts/Vazirmatn-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('../../fonts/Vazirmatn-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg-color: #0b0c10;
    --card-bg: #14161d;
    --input-bg: #0d0e12;
    --border-color: #272a34;
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --accent-gold: #FFCC58;
    --brand-gradient: linear-gradient(68deg, #e5a93b 14%, #FFCC58 65%);
    --brand-gradient-hover: linear-gradient(68deg, #c9922a 14%, #e5b442 65%);
}

.required-mark {
    color: #ef4444;
}

.public-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    max-width: 950px;
    margin: 0 auto 16px;
    padding: 10px;
    background: rgba(20, 22, 29, 0.96);
    border: 1px solid var(--border-color);
    border-radius: 14px;
}

.public-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 7px 14px;
    border-radius: 9px;
    color: var(--text-main);
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
}

.public-nav a:hover,
.public-nav a.active {
    color: #111317;
    background: var(--brand-gradient);
}

.public-nav .main-site-link {
    margin-right: auto;
}

.form-nav {
    position: relative;
}

.landing-body {
    min-height: 100vh;
    display: block;
    padding: 30px 16px;
}

.landing-shell {
    width: 100%;
    max-width: 950px;
    margin: 0 auto;
}

.landing-card {
    min-height: 520px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 50px 30px;
    text-align: center;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
}

.landing-kicker {
    margin: 4px 0 8px;
    color: var(--accent-gold);
    font-size: 14px;
    font-weight: 700;
}

.landing-description {
    max-width: 620px;
    margin: 12px auto 30px;
    color: var(--text-muted);
    line-height: 2;
}

.landing-actions {
    width: 100%;
    max-width: 680px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.landing-action {
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding: 24px 20px;
    border-radius: 14px;
    text-decoration: none;
    transition: transform .2s, border-color .2s, box-shadow .2s;
}

.landing-action:hover {
    transform: translateY(-3px);
}

.landing-action strong {
    font-size: 18px;
}

.landing-action span {
    font-size: 13px;
}

.landing-action.primary {
    color: #111317;
    background: var(--brand-gradient);
    box-shadow: 0 8px 25px rgba(255, 204, 88, .2);
}

.landing-action.secondary {
    color: var(--text-main);
    background: var(--input-bg);
    border: 1px solid var(--border-color);
}

.landing-action.secondary span {
    color: var(--text-muted);
}

@media (max-width: 650px) {
    .public-nav,
    .landing-actions {
        grid-template-columns: 1fr;
    }

    .public-nav {
        display: grid;
    }

    .public-nav .main-site-link {
        margin-right: 0;
    }

    .landing-card {
        min-height: auto;
        padding: 35px 18px;
    }
}

* {
    box-sizing: border-box;
    font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, Tahoma, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    margin: 0;
    padding: 30px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.container {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
    max-width: 950px;
    width: 100%;
    padding: 35px 30px;
}

.logo-wrap {
    text-align: center;
    margin-bottom: 12px;
}

.logo-wrap img {
    max-width: 170px;
    height: auto;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.4));
}

h1 {
    text-align: center;
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 6px 0;
}

.subtitle {
    text-align: center;
    color: var(--accent-gold);
    font-size: 13.5px;
    margin-bottom: 28px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

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

label {
    display: block;
    margin-bottom: 7px;
    font-weight: 600;
    font-size: 13.5px;
    color: #e5e7eb;
}

label .req {
    color: #ef4444;
    font-weight: bold;
}

label .opt {
    color: var(--text-muted);
    font-size: 11.5px;
    font-weight: normal;
}

input[type="text"], input[type="tel"], select, textarea {
    width: 100%;
    padding: 12px 14px;
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: #ffffff;
    font-size: 14px;
    outline: none;
    transition: all 0.2s;
}

input:focus, select:focus, textarea:focus {
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 3px rgba(255, 204, 88, 0.15);
}

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

select {
    cursor: pointer;
}

.section-header {
    font-size: 15px;
    font-weight: 700;
    color: var(--accent-gold);
    margin: 28px 0 16px;
    padding-right: 12px;
    border-right: 4px solid var(--accent-gold);
}

.img-drop-zone {
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    padding: 22px 14px;
    text-align: center;
    cursor: pointer;
    transition: 0.2s;
    background: var(--input-bg);
}

.img-drop-zone:hover, .img-drop-zone.dragover {
    border-color: var(--accent-gold);
    background: rgba(255, 204, 88, 0.02);
}

.img-drop-zone p {
    margin: 4px 0;
    font-size: 13px;
    color: var(--text-muted);
}

.img-drop-zone .btn-sim {
    display: inline-block;
    background: var(--brand-gradient);
    color: #111;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    margin-top: 6px;
}

.img-drop-zone .hint {
    font-size: 11px;
    color: #6b7280;
    margin-top: 8px;
}

.img-drop-zone .file-name {
    font-weight: 600;
    color: var(--accent-gold);
    margin-top: 6px;
    font-size: 12px;
    word-break: break-all;
}

.video-box {
    border: 2px dashed #e5a93b;
    border-radius: 14px;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: 0.25s;
    background: rgba(255, 204, 88, 0.03);
    margin-top: 6px;
}

.video-box:hover, .video-box.dragover {
    border-color: #fff;
    background: rgba(255, 204, 88, 0.08);
}

.video-box svg {
    width: 48px;
    height: 48px;
    fill: var(--accent-gold);
    margin-bottom: 8px;
}

.video-box p {
    margin: 4px 0;
    font-size: 14px;
    color: var(--text-main);
}

.video-box .video-name {
    font-weight: 700;
    color: var(--accent-gold);
    margin-top: 10px;
    font-size: 14px;
    word-break: break-all;
}

.rules-badge {
    background: rgba(255, 204, 88, 0.08);
    border-right: 3px solid var(--accent-gold);
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 12.5px;
    color: var(--text-muted);
    margin-bottom: 12px;
    line-height: 1.8;
}

.rules-badge strong {
    color: var(--accent-gold);
}

.agreement-box {
    background: rgba(255, 204, 88, 0.04);
    border: 1px solid rgba(255, 204, 88, 0.3);
    border-radius: 12px;
    padding: 18px 20px;
    margin-top: 26px;
    margin-bottom: 12px;
}

.agreement-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    user-select: none;
    margin: 0;
}

.agreement-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 3px;
    accent-color: var(--accent-gold);
    cursor: pointer;
    flex-shrink: 0;
}

.agreement-text {
    font-size: 13.5px;
    line-height: 1.9;
    color: #e5e7eb;
}

.agreement-title {
    font-weight: 800;
    color: var(--accent-gold);
    display: block;
    margin-bottom: 4px;
}

input[type="file"] {
    display: none;
}

.progress-container {
    margin-top: 22px;
    display: none;
    text-align: right;
}

.progress-bar-bg {
    background: #232733;
    height: 12px;
    border-radius: 8px;
    overflow: hidden;
}

.progress-bar-fill {
    background: var(--brand-gradient);
    height: 100%;
    width: 0%;
    transition: width 0.15s ease;
}

.progress-text {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    margin-top: 8px;
    color: var(--text-muted);
}

button[type="submit"] {
    width: 100%;
    padding: 15px;
    margin-top: 18px;
    background: var(--brand-gradient);
    color: #111317;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 15px rgba(255, 204, 88, 0.25);
}

button[type="submit"]:hover {
    background: var(--brand-gradient-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(255, 204, 88, 0.35);
}

button:disabled {
    background: #2b2e38;
    color: #6b7280;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* کارت تاییدیه نهایی پس از ثبت موفق اثر */
.success-card {
    display: none;
    text-align: center;
    padding: 40px 20px;
    animation: fadeIn 0.4s ease-in-out;
}

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

.success-icon {
    width: 76px;
    height: 76px;
    background: rgba(34, 197, 94, 0.12);
    border: 2px solid #22c55e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.success-icon svg {
    width: 44px;
    height: 44px;
    stroke: #22c55e;
    stroke-width: 2.5;
    fill: none;
}

.success-card h2 {
    font-size: 22px;
    color: #ffffff;
    margin: 0 0 10px;
}

.success-card p {
    color: var(--text-muted);
    font-size: 14.5px;
    line-height: 1.8;
    max-width: 580px;
    margin: 0 auto 24px;
}

.tracking-display-box {
    background: #0d0f14;
    border: 2px dashed var(--accent-gold);
    border-radius: 12px;
    padding: 18px 25px;
    display: inline-block;
    margin-bottom: 25px;
}

.tracking-display-box span {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.tracking-display-box strong {
    font-size: 28px;
    letter-spacing: 2px;
    color: var(--accent-gold);
    font-family: monospace, sans-serif;
}

.new-submit-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 10px 22px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13.5px;
    transition: 0.2s;
}

.new-submit-btn:hover {
    color: #fff;
    border-color: var(--accent-gold);
}

.status-msg.error {
    margin-top: 20px;
    padding: 14px;
    border-radius: 10px;
    font-size: 14px;
    display: none;
    line-height: 1.8;
    text-align: center;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid #ef4444;
    color: #f87171;
}

@media (max-width: 820px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: 1fr; }
    .grid-2 { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .grid-4 { grid-template-columns: 1fr; }
}
