/**
 * Show Us Modal Styles
 * Dark theme with pink/orange gradient accents
 */

/* Modal Overlay */
.show-us-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    padding: 20px;
    box-sizing: border-box;
    overflow-y: auto;
}

.show-us-modal-overlay.active {
    display: flex;
}

/* Modal Container */
.show-us-modal {
    background: #1a1a1a;
    border-radius: 12px;
    width: 100%;
    max-width: 550px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* Modal Header */
.show-us-modal-header {
    padding: 24px 30px 16px;
    text-align: center;
    position: relative;
}

.show-us-modal-title {
    font-family: 'Sui Generis', Georgia, serif;
    font-size: 28px;
    color: #ffffff;
    letter-spacing: 2px;
    margin: 0;
}

.show-us-modal-subtitle {
    font-family: 'Sui Generis', Georgia, serif;
    font-size: 14px;
    color: #cccccc;
    margin: 12px 0 0;
    line-height: 1.5;
}

.show-us-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.show-us-modal-close::before,
.show-us-modal-close::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 2px;
    background: #EF405C;
    transform-origin: center;
}

.show-us-modal-close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.show-us-modal-close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.show-us-modal-close:hover::before,
.show-us-modal-close:hover::after {
    background: #FD724C;
}

/* Modal Body */
.show-us-modal-body {
    padding: 0 30px 24px;
}

/* Form Fields */
.show-us-form-group {
    margin-bottom: 12px;
}

.show-us-form-label {
    display: block;
    font-family: 'Sui Generis', Georgia, serif;
    font-size: 11px;
    color: #888888;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.show-us-form-input,
.show-us-form-textarea,
.show-us-form-select {
    width: 100%;
    background: #111111;
    border: none;
    border-radius: 0;
    padding: 16px 14px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #ffffff;
    box-sizing: border-box;
    transition: box-shadow 0.2s ease;
}

.show-us-form-input:focus,
.show-us-form-textarea:focus,
.show-us-form-select:focus {
    outline: none;
    box-shadow: inset 0 0 0 1px #EF405C;
}

.show-us-form-input::placeholder,
.show-us-form-textarea::placeholder {
    color: #555555;
}

/* Override browser autofill styles to maintain dark theme */
.show-us-form-input:-webkit-autofill,
.show-us-form-input:-webkit-autofill:hover,
.show-us-form-input:-webkit-autofill:focus,
.show-us-form-input:-webkit-autofill:active,
.show-us-form-textarea:-webkit-autofill,
.show-us-form-select:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px #111111 inset !important;
    -webkit-text-fill-color: #ffffff !important;
    box-shadow: 0 0 0 1000px #111111 inset !important;
    transition: background-color 5000s ease-in-out 0s;
    caret-color: #ffffff;
}

.show-us-form-textarea {
    min-height: 120px;
    resize: vertical;
}

.show-us-form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23EF405C' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
    cursor: pointer;
}

/* Custom Project Type Input (shown when "Other" selected) */
.show-us-custom-type {
    margin-top: 8px;
    display: none;
}

.show-us-custom-type.visible {
    display: block;
}

/* Two Column Row */
.show-us-form-row {
    display: flex;
    gap: 12px;
}

.show-us-form-row .show-us-form-group {
    flex: 1;
}

/* Link Input Section */
.show-us-link-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #333333;
}

.show-us-link-label {
    font-family: 'Sui Generis', Georgia, serif;
    font-size: 11px;
    color: #888888;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 8px;
    display: block;
}

/* File Upload Section */
.show-us-upload-section {
    margin-top: 16px;
}

.show-us-file-list {
    margin-bottom: 12px;
}

.show-us-file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #333333;
    padding: 14px 16px;
    margin-bottom: 8px;
}

.show-us-file-name {
    font-family: 'Sui Generis', Georgia, serif;
    font-size: 14px;
    color: #ffffff;
    letter-spacing: 0.5px;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-right: 12px;
}

.show-us-file-size {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: #888888;
    margin-right: 16px;
}

.show-us-file-remove {
    width: 20px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
}

.show-us-file-remove::before,
.show-us-file-remove::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 14px;
    height: 2px;
    background: #EF405C;
}

.show-us-file-remove::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.show-us-file-remove::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.show-us-file-remove:hover::before,
.show-us-file-remove:hover::after {
    background: #ff6b6b;
}

/* Upload Button */
.show-us-upload-btn-wrapper {
    text-align: center;
}

.show-us-upload-btn {
    display: inline-block;
    background: #444444;
    color: #ffffff;
    font-family: 'XIROD', sans-serif;
    font-size: 14px;
    letter-spacing: 1px;
    padding: 12px 32px;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease;
}

.show-us-upload-btn:hover {
    background: #555555;
}

.show-us-upload-input {
    display: none;
}

.show-us-upload-note {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    color: #666666;
    text-align: center;
    margin-top: 8px;
}

/* Consent Section */
.show-us-consent-section {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #333333;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.show-us-consent-text {
    font-family: 'Sui Generis', Georgia, serif;
    font-size: 13px;
    color: #ffffff;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    line-height: 1.4;
    flex: 1;
}

/* Toggle Switch */
.show-us-toggle {
    position: relative;
    width: 80px;
    height: 36px;
    flex-shrink: 0;
}

.show-us-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.show-us-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #333333;
    border-radius: 18px;
    transition: background 0.3s ease;
}

.show-us-toggle-slider::before {
    content: '';
    position: absolute;
    height: 28px;
    width: 28px;
    left: 4px;
    bottom: 4px;
    background: #1a1a1a;
    border: 2px solid #EF405C;
    border-radius: 50%;
    transition: transform 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box;
}

.show-us-toggle input:checked+.show-us-toggle-slider {
    background: linear-gradient(90deg, #EF405C, #FD724C);
}

.show-us-toggle input:checked+.show-us-toggle-slider::before {
    transform: translateX(44px);
    border-color: #ffffff;
}

/* Submit Button */
.show-us-submit-section {
    margin-top: 20px;
}

.show-us-submit-btn {
    width: 100%;
    padding: 16px 24px;
    font-family: 'XIROD', sans-serif;
    font-size: 18px;
    letter-spacing: 1px;
    color: #ffffff;
    border: none;
    cursor: pointer;
    transition: opacity 0.3s ease, filter 0.3s ease;
    background: linear-gradient(90deg, #EF405C, #FD724C);
}

.show-us-submit-btn:disabled {
    background: linear-gradient(90deg, #5a2a33, #6b3a35);
    color: #888888;
    cursor: not-allowed;
}

.show-us-submit-btn:not(:disabled):hover {
    filter: brightness(1.1);
}

/* Terms Text */
.show-us-terms {
    text-align: center;
    margin-top: 16px;
    font-family: 'Sui Generis', Georgia, serif;
    font-size: 11px;
    color: #888888;
    letter-spacing: 0.3px;
}

.show-us-terms a {
    color: #ffffff;
    text-decoration: underline;
}

.show-us-terms a:hover {
    color: #EF405C;
}

/* Error States */
.show-us-form-input.error,
.show-us-form-textarea.error,
.show-us-form-select.error {
    box-shadow: inset 0 0 0 1px #ff4444;
}

.show-us-error-message {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    color: #ff4444;
    margin-top: 4px;
    display: none;
}

.show-us-error-message.visible {
    display: block;
}

/* Success State */
.show-us-success {
    text-align: center;
    padding: 60px 30px;
}

.show-us-success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #EF405C, #FD724C);
    display: flex;
    align-items: center;
    justify-content: center;
}

.show-us-success-icon::after {
    content: '✓';
    font-size: 40px;
    color: #ffffff;
}

.show-us-success-title {
    font-family: 'Sui Generis', Georgia, serif;
    font-size: 24px;
    color: #ffffff;
    margin: 0 0 12px;
}

.show-us-success-text {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #cccccc;
    line-height: 1.6;
}

/* ===========================
   Social Media Section
   =========================== */
.show-us-social-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #333333;
}

.show-us-social-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: #666666;
    margin: 4px 0 16px 0;
}

/* Social Media Icons Row */
.show-us-social-icons-row {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.show-us-social-icon-btn {
    width: 48px;
    height: 48px;
    border: 2px solid #444444;
    border-radius: 12px;
    background: #1a1a1a;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    padding: 10px;
}

.show-us-social-icon-btn svg {
    width: 24px;
    height: 24px;
    stroke: #888888 !important;
    color: #888888;
    transition: stroke 0.25s ease, color 0.25s ease;
}

.show-us-social-icon-btn:hover {
    border-color: #EF405C;
    background: rgba(239, 64, 92, 0.1);
    transform: translateY(-2px);
}

.show-us-social-icon-btn:hover svg {
    stroke: #EF405C !important;
    color: #EF405C;
}

.show-us-social-icon-btn.active {
    border-color: #EF405C;
    background: linear-gradient(135deg, rgba(239, 64, 92, 0.2), rgba(253, 114, 76, 0.2));
    box-shadow: 0 0 16px rgba(239, 64, 92, 0.3);
}

.show-us-social-icon-btn.active svg {
    stroke: #ffffff !important;
    color: #ffffff;
}

/* Social Media Input Fields Container */
.show-us-social-inputs {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Individual Social Input Group (hidden by default) */
.show-us-social-input-group {
    display: none !important;
    animation: slideDown 0.3s ease;
}

.show-us-social-input-group.visible {
    display: block !important;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Social Input Label Row */
.show-us-social-input-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.show-us-social-platform-name {
    font-family: 'Sui Generis', Georgia, serif;
    font-size: 12px;
    color: #cccccc;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Remove Button */
.show-us-social-remove {
    width: 24px;
    height: 24px;
    border: none;
    background: transparent;
    color: #666666;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.show-us-social-remove:hover {
    background: rgba(239, 64, 92, 0.2);
    color: #EF405C;
}

/* Social Input Field Styling */
.show-us-social-input {
    background: #111111;
    border: 1px solid #333333;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.show-us-social-input:focus {
    border-color: #EF405C;
    box-shadow: 0 0 0 2px rgba(239, 64, 92, 0.15);
}

/* Responsive */
@media (max-width: 600px) {
    .show-us-modal-overlay {
        padding: 0 24px !important;
        /* Force margins via parent padding */
        overflow: hidden !important;
        overscroll-behavior: none;
        touch-action: none;
    }

    .show-us-modal {
        max-height: 90dvh;
        height: auto;
        overflow-y: auto;
        overflow-x: hidden;
        width: 100% !important;
        max-width: 500px;
        min-width: 0;
        margin: auto !important;
        left: auto;
        right: auto;
        border-radius: 12px;
        display: flex;
        flex-direction: column;
        box-sizing: border-box;
        overscroll-behavior: contain;
        touch-action: auto;
    }

    .show-us-modal-header {
        flex-shrink: 0;
        padding-left: 20px;
        padding-right: 20px;
    }

    .show-us-modal-body {
        flex: 1;
        overflow-y: auto;
        padding-left: 20px;
        padding-right: 20px;
        padding-bottom: 80px;
        /* Safe space for scrolling past bottom */
    }

    .show-us-form-row {
        flex-direction: column;
        gap: 0;
    }

    .show-us-consent-section {
        flex-direction: column;
        text-align: center;
    }

    .show-us-consent-text {
        margin-bottom: 12px;
    }

    /* Social Media Section - Mobile */
    .show-us-social-icons-row {
        gap: 8px;
    }

    .show-us-social-icon-btn {
        width: 42px;
        height: 42px;
        padding: 8px;
    }

    .show-us-social-icon-btn svg {
        width: 20px;
        height: 20px;
    }

    .show-us-social-subtitle {
        text-align: center;
    }
}