/**
 * Wrestling Design Request Form Styles
 */

.wdr-form-container {
    max-width: 800px;
    margin: 0 auto;
    font-family: 'Arial', sans-serif;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    overflow: hidden;
}

.wdr-form {
    padding: 0;
}

.wdr-form-header {
    background: linear-gradient(135deg, #1a1a1a 0%, #333 100%);
    color: #fff;
    padding: 30px;
    text-align: center;
    position: relative;
}

.wdr-form-header::before {
    content: "🤼‍♂️";
    font-size: 3em;
    display: block;
    margin-bottom: 10px;
}

.wdr-form-header h2 {
    margin: 0 0 10px 0;
    font-size: 2.2em;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.wdr-form-header p {
    margin: 0;
    font-size: 1.1em;
    opacity: 0.9;
}

.wdr-form-section {
    padding: 30px;
    border-bottom: 1px solid #eee;
}

.wdr-form-section:last-of-type {
    border-bottom: none;
}

.wdr-form-section h3 {
    margin: 0 0 20px 0;
    color: #1a1a1a;
    font-size: 1.3em;
    font-weight: bold;
    border-bottom: 2px solid #d4af37;
    padding-bottom: 8px;
    display: inline-block;
}

.wdr-form-group {
    margin-bottom: 20px;
}

.wdr-form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.wdr-form-row .wdr-form-group {
    flex: 1;
    margin-bottom: 0;
}

.wdr-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}

.wdr-form-group label.required::after {
    content: " *";
    color: #d63638;
}

.wdr-form-group input[type="text"],
.wdr-form-group input[type="email"],
.wdr-form-group input[type="tel"],
.wdr-form-group select,
.wdr-form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.wdr-form-group input:focus,
.wdr-form-group select:focus,
.wdr-form-group textarea:focus {
    outline: none;
    border-color: #d4af37;
    box-shadow: 0 0 5px rgba(212, 175, 55, 0.3);
}

.wdr-form-group select {
    cursor: pointer;
    background: #fff;
}

.wdr-form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.wdr-checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.wdr-checkbox-group label {
    display: flex;
    align-items: center;
    font-weight: normal;
    margin-bottom: 5px;
    cursor: pointer;
    padding: 8px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.wdr-checkbox-group label:hover {
    background-color: #f5f5f5;
}

.wdr-checkbox-group input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
    margin-bottom: 0;
}

.wdr-help-text {
    font-size: 0.9em;
    color: #666;
    margin-top: 5px;
    font-style: italic;
}

.wdr-form-group input[type="file"] {
    padding: 8px;
    border: 2px dashed #ddd;
    border-radius: 5px;
    background: #fafafa;
    cursor: pointer;
}

.wdr-form-submit {
    padding: 30px;
    text-align: center;
    background: #f8f8f8;
}

.wdr-submit-btn {
    background: linear-gradient(135deg, #d4af37 0%, #ffd700 100%);
    color: #1a1a1a;
    border: none;
    padding: 15px 40px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.wdr-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.6);
    background: linear-gradient(135deg, #ffd700 0%, #d4af37 100%);
}

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

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

.wdr-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
    color: #666;
    font-style: italic;
}

.wdr-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-top: 2px solid #d4af37;
    border-radius: 50%;
    animation: wdr-spin 1s linear infinite;
}

@keyframes wdr-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.wdr-form-messages {
    margin-top: 20px;
    padding: 15px;
    border-radius: 5px;
    display: none;
}

.wdr-form-messages.success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    display: block;
}

.wdr-form-messages.error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    display: block;
}

/* Responsive Design */
@media (max-width: 768px) {
    .wdr-form-container {
        margin: 10px;
        border-radius: 5px;
    }
    
    .wdr-form-header {
        padding: 20px;
    }
    
    .wdr-form-header h2 {
        font-size: 1.8em;
    }
    
    .wdr-form-section {
        padding: 20px;
    }
    
    .wdr-form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .wdr-checkbox-group {
        grid-template-columns: 1fr;
    }
    
    .wdr-submit-btn {
        padding: 12px 30px;
        font-size: 16px;
    }
}

/* Field validation states */
.wdr-form-group input.error,
.wdr-form-group select.error,
.wdr-form-group textarea.error {
    border-color: #d63638;
    box-shadow: 0 0 5px rgba(214, 54, 56, 0.3);
}

.wdr-form-group .error-message {
    color: #d63638;
    font-size: 0.9em;
    margin-top: 5px;
    display: block;
}

/* Dynamic Image Upload Styles */
#image-upload-container {
    margin-bottom: 15px;
}

.image-upload-field {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    position: relative;
}

.reference-image-input {
    flex: 1;
    margin-right: 10px;
}

.remove-image-btn {
    background: #d63638;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.remove-image-btn:hover {
    background: #b32c2e;
}

.add-image-btn {
    background: #d4af37;
    color: #1a1a1a;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s ease;
}

.add-image-btn:hover {
    background: #ffd700;
}

/* Email Opt-in Checkbox */
.wdr-checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-weight: normal;
}

.wdr-checkbox-label input[type="checkbox"] {
    margin-right: 10px;
    margin-top: 3px;
}

.wdr-checkbox-label span {
    flex: 1;
    line-height: 1.5;
}

/* Wrestling theme accents */
.wdr-form-section::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, #d4af37, #ffd700);
    opacity: 0.7;
}

.wdr-form-section {
    position: relative;
    padding-left: 35px;
}

@media (max-width: 768px) {
    .wdr-form-section {
        padding-left: 25px;
    }
}