/* Modern Form Styling - Consistent across all forms */

/* Form group container */
.form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

/* Input field styling */
.form-input {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fff;
    outline: none;
    letter-spacing: 0.02em;
    line-height: 1.5;
    color: #374151;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

.form-input::placeholder {
    color: #9ca3af;
}

.form-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

.form-input:hover:not(:focus) {
    transform: translateY(-1px);
    border-color: #d1d5db;
    box-shadow: 0 6px 12px -2px rgba(0, 0, 0, 0.08), 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

/* Error state for inputs */
.form-input.error {
    border-color: #ef4444;
    background-color: rgba(254, 226, 226, 0.3);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* Select field styling */
.form-select {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fff;
    outline: none;
    letter-spacing: 0.02em;
    line-height: 1.5;
    color: #374151;
    appearance: none;
    cursor: pointer;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-position: right 1rem center;
    background-repeat: no-repeat;
    background-size: 1rem;
    padding-right: 3rem;
}

.form-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

.form-select:hover:not(:focus) {
    transform: translateY(-1px);
    border-color: #d1d5db;
    box-shadow: 0 6px 12px -2px rgba(0, 0, 0, 0.08), 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

/* Error state for selects */
.form-select.error {
    border-color: #ef4444;
    background-color: rgba(254, 226, 226, 0.3);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* Label styling */
.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #4a5568;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
}

/* Required field indicator */
.form-label .required {
    color: #ef4444;
    margin-left: 0.25rem;
}

/* Error message styling */
.form-error {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #ef4444;
    display: flex;
    align-items: center;
}

.form-error svg {
    width: 1rem;
    height: 1rem;
    margin-right: 0.25rem;
    flex-shrink: 0;
}

/* Button styling */
.form-button {
    padding: 1rem 2rem;
    border: 2px solid transparent;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    outline: none;
    letter-spacing: 0.02em;
    line-height: 1.5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
}

/* Primary button */
.form-button.primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.form-button.primary:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.form-button.primary:focus {
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3), 0 8px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Secondary button */
.form-button.secondary {
    background: #fff;
    color: #374151;
    border-color: #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

.form-button.secondary:hover {
    background: #f9fafb;
    transform: translateY(-1px);
    box-shadow: 0 6px 12px -2px rgba(0, 0, 0, 0.08), 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

/* Disabled state */
.form-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Textarea styling */
.form-textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fff;
    outline: none;
    letter-spacing: 0.02em;
    line-height: 1.5;
    color: #374151;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    resize: vertical;
    min-height: 120px;
}

.form-textarea::placeholder {
    color: #9ca3af;
}

.form-textarea:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

.form-textarea:hover:not(:focus) {
    transform: translateY(-1px);
    border-color: #d1d5db;
    box-shadow: 0 6px 12px -2px rgba(0, 0, 0, 0.08), 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

/* Form section headers */
.form-section-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e5e7eb;
}

/* Form grid layouts */
.form-grid {
    display: grid;
    gap: 1.5rem;
}

.form-grid.cols-1 {
    grid-template-columns: 1fr;
}

.form-grid.cols-2 {
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .form-grid.cols-2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .form-input,
    .form-select,
    .form-textarea {
        font-size: 16px; /* Prevents zoom on iOS */
    }
} 