/* Form Styles */
.contact-form-wrapper {
    padding: 1rem;
}

.contact-form-wrapper h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.form-group {
    position: relative;
    margin-bottom: 2rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.8rem 0;
    font-size: 1rem;
    color: #333;
    border: none;
    border-bottom: 1px solid #ddd;
    outline: none;
    background: transparent;
    transition: border-color 0.3s;
    border-radius: 0; /* Remove default border radius */
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group label {
    position: absolute;
    top: 0.8rem;
    left: 0;
    font-size: 1rem;
    color: #999;
    pointer-events: none;
    transition: all 0.3s ease;
}

/* Focus Effects */
.form-group input:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:not(:placeholder-shown) ~ label {
    top: -1.2rem;
    font-size: 0.85rem;
    color: var(--brand-blue);
}

.focus-border {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--brand-blue);
    transition: width 0.3s ease, left 0.3s ease;
}

.form-group input:focus ~ .focus-border,
.form-group textarea:focus ~ .focus-border,
.form-group select:focus ~ .focus-border {
    width: 100%;
    left: 0;
}

/* Select specific styling */
.form-group select {
    color: #333;
    cursor: pointer;
}

.form-group select:invalid {
    color: #999;
}

/* Submit Button */
.submit-btn {
    background-color: var(--accent-orange);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-width: 180px;
}

.submit-btn:hover {
    background-color: #e65c00;
    transform: translateY(-2px);
}

/* Loading State */
.submit-btn .loader {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

.submit-btn.loading span {
    display: none;
}

.submit-btn.loading .loader {
    display: block;
}

.submit-btn.loading {
    pointer-events: none;
    opacity: 0.8;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
