/* BFC Secure Upload - Public Portal Styles */

:root {
    --primary-color: #DD2727;
    --primary-dark: #B71C1C;
    --primary-light: #F44336;
    --accent-color: #FF6B6B;
    --success-color: #48BB78;
    --error-color: #E53E3E;
    --warning-color: #ED8936;
    --text-color: #2D3748;
    --text-muted: #718096;
    --border-color: #E2E8F0;
    --bg-color: #F7FAFC;
    --white: #FFFFFF;
    --dark-bg: #2C2C2C;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--bg-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* Header */
.header {
    background: var(--white);
    color: var(--text-color);
    padding: 0;
    border-top: 4px solid var(--primary-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

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

.tagline {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
    border-left: 2px solid var(--border-color);
    padding-left: 15px;
}

.header-phone {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
}

.header-phone:hover {
    color: var(--primary-dark);
}

/* Main content */
.main {
    flex: 1;
    padding: 40px 0;
}

/* Cards */
.card {
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 40px;
}

.card h2 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

.intro {
    color: var(--text-muted);
    margin-bottom: 30px;
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 10px;
        padding: 10px 20px;
    }

    .header-left {
        width: 100%;
        justify-content: center;
    }

    .header-phone {
        font-size: 0.95rem;
    }

    .tagline {
        border-left: none;
        padding-left: 0;
        margin-top: 5px;
    }
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .logo-img {
        height: 40px;
    }

    .container {
        padding: 0 15px;
    }

    .card {
        padding: 25px 20px;
        border-radius: 0;
    }

    .main {
        padding: 20px 0;
    }

    h2 {
        font-size: 1.5rem;
    }

    .btn {
        width: 100%;
        padding: 14px 20px;
    }

    .drop-zone {
        padding: 30px 15px;
    }

    .upload-icon {
        width: 40px;
        height: 40px;
    }

    .drop-zone p {
        font-size: 0.9rem;
    }

    .verified-badge {
        font-size: 0.85rem;
        padding: 8px 12px;
    }

    .file-item {
        flex-wrap: wrap;
        gap: 5px;
    }

    .file-item .filename {
        flex-basis: 100%;
    }

    .file-item .filesize {
        margin: 0;
    }

    .details-table th,
    .details-table td {
        padding: 8px;
        font-size: 0.9rem;
    }

    .details-table th {
        width: 35%;
    }

    .actions {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .actions .btn {
        width: 100%;
    }
}

label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: var(--text-color);
}

input[type="text"],
input[type="email"],
select,
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.2);
}

input[readonly] {
    background: var(--bg-color);
    color: var(--text-muted);
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

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

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

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

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

.btn-primary:hover:not(:disabled) {
    background: var(--primary-dark);
}

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

.btn-secondary:hover:not(:disabled) {
    background: #CBD5E0;
}

/* Messages */
.message {
    padding: 20px;
    border-radius: 6px;
    margin-top: 20px;
}

.message.success {
    background: #C6F6D5;
    border: 1px solid var(--success-color);
}

.message.error {
    background: #FED7D7;
    border: 1px solid var(--error-color);
}

.message h3 {
    color: inherit;
    margin-bottom: 10px;
}

.message .note {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 10px;
}

/* Verified badge */
.verified-badge {
    background: #C6F6D5;
    color: #276749;
    padding: 10px 15px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.checkmark {
    font-weight: bold;
}

/* Drop zone */
.drop-zone {
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    transition: border-color 0.2s, background-color 0.2s;
    cursor: pointer;
}

.drop-zone:hover,
.drop-zone.drag-over {
    border-color: var(--primary-light);
    background: #EBF8FF;
}

.drop-zone-content {
    pointer-events: none;
}

.upload-icon {
    color: var(--text-muted);
    margin-bottom: 10px;
}

.browse-link {
    color: var(--primary-color);
    text-decoration: underline;
    cursor: pointer;
}

.hint {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 10px;
}

/* File list */
.file-list {
    background: var(--bg-color);
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 20px;
}

.file-list h4 {
    margin-bottom: 15px;
    color: var(--text-color);
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    background: var(--white);
    border-radius: 4px;
    margin-bottom: 8px;
}

.file-item .filename {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-item .filesize {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0 15px;
}

.file-item .remove-btn {
    background: none;
    border: none;
    color: var(--error-color);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0 5px;
}

.file-summary {
    text-align: right;
    font-weight: 500;
    margin-top: 10px;
    color: var(--text-muted);
}

/* Upload progress */
.upload-progress {
    background: var(--bg-color);
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 20px;
}

.progress-bar-container {
    background: var(--border-color);
    border-radius: 10px;
    height: 20px;
    overflow: hidden;
    margin: 15px 0;
}

.progress-bar {
    height: 100%;
    background: var(--primary-color);
    border-radius: 10px;
    transition: width 0.3s;
    width: 0%;
}

#progressText {
    text-align: center;
    color: var(--text-muted);
}

#uploadStatus {
    margin-top: 10px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Confirmation page */
.confirmation-card {
    text-align: center;
}

.success-icon {
    margin-bottom: 20px;
}

.confirmation-message {
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.submission-details {
    background: var(--bg-color);
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 30px;
    text-align: left;
}

.details-table {
    width: 100%;
    border-collapse: collapse;
}

.details-table th,
.details-table td {
    padding: 10px;
    border-bottom: 1px solid var(--border-color);
}

.details-table th {
    text-align: left;
    width: 40%;
    color: var(--text-muted);
    font-weight: 500;
}

.details-table code {
    background: var(--white);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9rem;
}

.files-uploaded {
    text-align: left;
    margin-bottom: 30px;
}

.files-uploaded h3 {
    margin-bottom: 15px;
}

.file-list-simple {
    list-style: none;
    background: var(--bg-color);
    border-radius: 6px;
    padding: 10px;
}

.file-list-simple li {
    display: flex;
    justify-content: space-between;
    padding: 8px 10px;
}

.file-list-simple .filesize {
    color: var(--text-muted);
}

.expiration-notice {
    background: #FEFCBF;
    border: 1px solid var(--warning-color);
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 30px;
    text-align: left;
}

.actions {
    margin-top: 20px;
}

/* Error page */
.error-card {
    text-align: center;
}

.error-icon {
    margin-bottom: 20px;
}

.error-message {
    color: var(--text-muted);
    margin-bottom: 30px;
}

/* Retention notice */
.retention-notice {
    background: #FEFCBF;
    border: 1px solid var(--warning-color);
    border-radius: 6px;
    padding: 15px;
    margin-top: 20px;
    text-align: center;
}

/* Footer */
.footer {
    background: var(--dark-bg);
    color: var(--white);
    padding: 30px 0;
    text-align: center;
    font-size: 0.9rem;
}

.footer p {
    opacity: 0.9;
}

.security-note {
    margin-top: 8px;
    font-size: 0.85rem;
    opacity: 0.7;
}

.footer-links {
    margin-top: 15px;
    font-size: 0.85rem;
    opacity: 0.7;
}

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

.footer-links a:hover {
    opacity: 1;
    text-decoration: underline;
}

.footer-links .separator {
    margin: 0 10px;
    opacity: 0.5;
}
