/* === Form Container === */
.form-container {
    background: #fff;
    border: 3px solid #2c2c2c;
    padding: 50px;
    position: relative;
    box-shadow: 
        10px 10px 0 #d4a574,
        10px 10px 0 3px #2c2c2c;
}

.form-container::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 2px dashed #d4a574;
    pointer-events: none;
}

.form-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(139, 69, 19, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(160, 82, 45, 0.02) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

/* === Form Elements === */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
}

.form-group {
    position: relative;
}

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

label {
    display: block;
    font-weight: 700;
    color: #2c2c2c;
    margin-bottom: 10px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

label::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 30px;
    height: 2px;
    background: #d4a574;
}

input, select, textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #2c2c2c;
    background: #f7f5f0;
    color: #2c2c2c;
    font-family: 'Courier Prime', monospace;
    font-size: 16px;
    transition: all 0.3s ease;
    position: relative;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    background: #fff;
    box-shadow: 
        5px 5px 0 #d4a574,
        5px 5px 0 2px #2c2c2c;
    transform: translate(-2px, -2px);
}

input::placeholder {
    color: #8b8b8b;
    font-style: italic;
}

select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%232c2c2c' viewBox='0 0 16 16'%3e%3cpath d='M8 11L3 6h10l-5 5z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
}

select option {
    background: #f7f5f0;
    color: #2c2c2c;
}

/* === File Input === */
.file-input-wrapper {
    position: relative;
    overflow: hidden;
    display: inline-block;
    width: 100%;
}

.file-input-wrapper input[type=file] {
    position: absolute;
    left: -9999px;
    opacity: 0;
}

.file-input-label {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 25px;
    border: 3px dashed #2c2c2c;
    background: #f7f5f0;
    color: #2c2c2c;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 100px;
    position: relative;
}

.file-input-label::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border: 1px solid #d4a574;
    pointer-events: none;
}

.file-input-label:hover {
    background: #fff;
    transform: translate(-2px, -2px);
    box-shadow: 
        5px 5px 0 #d4a574,
        5px 5px 0 2px #2c2c2c;
}

.file-icon {
    width: 24px;
    height: 24px;
    margin-right: 10px;
    stroke: #2c2c2c;
    fill: none;
    stroke-width: 2;
}

/* === Preview Section === */
.previews {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #2c2c2c;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.previews.show {
    opacity: 1;
}

.preview-item {
    background: #f7f5f0;
    border: 2px solid #2c2c2c;
    padding: 15px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.preview-item::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border: 1px dashed #d4a574;
    pointer-events: none;
}

.preview-item:hover {
    background: #fff;
    transform: translate(-2px, -2px);
    box-shadow: 
        5px 5px 0 #d4a574,
        5px 5px 0 2px #2c2c2c;
}

.preview-color {
    width: 50px;
    height: 50px;
    border: 2px solid #2c2c2c;
    margin: 0 auto 10px;
    position: relative;
}

.preview-color::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border: 1px solid #d4a574;
}

.preview-name {
    color: #2c2c2c;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.preview-text {
    margin: 10px 0;
    padding: 15px;
    background: linear-gradient(135deg, #ffffff, #f5f5f5);
    border: 2px solid #d0d0d0;
    border-radius: 12px;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1em;
    color: #2c2c2c;
    text-align: left;
    transition: all 0.3s ease;
    opacity: 1;
    transform: translateY(0);
    grid-column: 1 / -1;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.preview-text.active {
    opacity: 1;
    transform: translateY(0);
    border-color: #ffd490;
    background: linear-gradient(135deg, #f8f9ff, #ffffff);
}

.preview-placeholder {
    color: #666;
    font-weight: 400;
}

.preview-filled {
    color: #1a1a1a;
    font-weight: 500;
}

.preview-label {
    font-weight: bold;
    color: #5f5f5f;
    margin-bottom: 5px;
    font-size: 12px;
    grid-column: 1 / -1;
}

/* === Submit Button === */
.submit-btn {
    width: 100%;
    padding: 20px;
    background: #2c2c2c;
    color: #f7f5f0;
    border: none;
    font-family: 'Courier Prime', monospace;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    margin-top: 30px;
    z-index: 2;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 2px dashed #d4a574;
    pointer-events: none;
}

.submit-btn:hover {
    background: #f7f5f0;
    color: #2c2c2c;
    transform: translate(-3px, -3px);
    box-shadow: 
        8px 8px 0 #d4a574,
        8px 8px 0 3px #2c2c2c;
}

.submit-btn:active {
    transform: translate(-1px, -1px);
    box-shadow: 
        3px 3px 0 #d4a574,
        3px 3px 0 2px #2c2c2c;
}

.submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #cccccc !important;
    color: #666666 !important;
}

.submit-btn:disabled:hover {
    background: #cccccc !important;
    color: #666666 !important;
    transform: none !important;
    box-shadow: none !important;
}

.design-brief-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.examples-btn {
    border: 1px solid #8B7355;
    color: #8B7355;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Courier Prime', monospace;
    position: relative;
    animation: pulse 2s infinite;
    box-shadow: 0 0 0 0 rgba(139, 115, 85, 0.4);
}

.examples-btn:hover {
    background: #8B7355;
    color: white;
    animation-play-state: paused;
    transform: scale(1);
    box-shadow: 0 4px 15px rgba(139, 115, 85, 0.3);
}

/* === Moderation Warning === */
.moderation-warning {
    margin-top: 10px;
    padding: 10px;
    background: #ffe6e6;
    border: 2px solid #ff4444;
    border-radius: 4px;
    position: relative;
    animation: slideIn 0.3s ease-out;
}

.moderation-warning::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 1px dashed #ff4444;
    pointer-events: none;
}

.warning-content {
    display: flex;
    align-items: center;
    color: #cc0000;
    font-size: 14px;
    font-weight: 600;
}

.warning-icon {
    margin-right: 8px;
    flex-shrink: 0;
}

.moderation-error {
    border-color: #ff4444 !important;
    background: #ffe6e6 !important;
}

.moderation-error:focus {
    box-shadow: 
        5px 5px 0 #ff4444,
        5px 5px 0 2px #cc0000 !important;
}

/* === Responsive Design === */
@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .form-container {
        padding: 30px;
        box-shadow: 
            5px 5px 0 #d4a574,
            5px 5px 0 2px #2c2c2c;
    }
}

/* Tags Input Styling */
.tags-display {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.tag-item {
    background: #e3f2fd;
    border: 1px solid #90caf9;
    border-radius: 20px;
    padding: 5px 12px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    color: #1565c0;
    max-width: 200px;
}

.tag-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tag-remove {
    background: none;
    border: none;
    color: #1565c0;
    font-weight: bold;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    padding: 0;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tag-remove:hover {
    background: rgba(21, 101, 192, 0.1);
}

#tagInput::placeholder {
    color: #999;
    font-style: italic;
}

.tag-counter {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
    text-align: right;
}

.tag-counter.limit-warning {
    color: #f57c00;
}

.tag-counter.limit-reached {
    color: #d32f2f;
}

.form-hint {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
    font-style: italic;
}

