/**
 * Contact Form 7 Custom Styles
 * Clean CSS classes instead of Tailwind
 */

/* ============================================
   BASE FORM STYLES
   ============================================ */

.wpcf7-form {
    max-width: 100%;
}

.wpcf7-form > div {
    margin-bottom: 1rem;
}

/* ============================================
   HERO FORM STYLES
   ============================================ */

.hero-cf7-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Field Wrapper with Icons */
.hero-cf7-form .cf7-field-wrapper {
    position: relative;
    width: 100%;
}

.hero-cf7-form .cf7-field-icon {
    position: absolute;
    left: 1rem;
    top: 1.9rem;
    transform: translateY(-50%);
    z-index: 10;
    pointer-events: none;
    color: #9ca3af;
    font-size: 1rem;
}

.hero-cf7-form .cf7-select-arrow {
    position: absolute;
    right: 1rem;
    top: 2rem;
    transform: translateY(-50%);
    z-index: 10;
    pointer-events: none;
    color: #9ca3af;
    font-size: 0.875rem;
}
.hero-cf7-form .wpcf7-form-control-wrap {
	margin-bottom: 0px;
}
.hero-cf7-form .wpcf7-spinner{
	display:none;
}
/* Hero Form Inputs */
.hero-form-input,
.hero-form-select {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #fff;
    color: #000;
    font-family: inherit;
}
.hero-form-select{
	color: #8f949f;
}
.hero-form-input:focus,
.hero-form-select:focus {
    outline: none;
    border-color: inherit;
    box-shadow: none;
}

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

/* Textarea with hero-form-input class */
textarea.hero-form-input {
    max-height: 150px;
    resize: vertical;
}

/* Hero Form Select */
.hero-form-select {
    appearance: none;
   /* background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%239ca3af'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.5em 1.5em;*/
    padding-right: 3rem;
    cursor: pointer;
}

.hero-form-select option {
    color: #000;
    background-color: #fff;
}

/* Hero Form Textarea */
.hero-form-textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #fff;
    color: #000;
    font-family: inherit;
    max-height: 150px;
    resize: vertical;
}

.hero-form-textarea:focus {
    outline: none;
    border-color: inherit;
    box-shadow: none;
}

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

.hero-form-textarea.hidden {
    display: none;
}

/* Hero Form Submit Button */
.hero-form-submit {
    width: 100%;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #3b82f6 0%, #ec4899 100%);
    color: #fff;
    border: none;
    border-radius: 0.75rem;
    font-size: 1.125rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.hero-form-submit:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.6);
    background: linear-gradient(135deg, #2563eb 0%, #db2777 100%);
}

.hero-form-submit:active {
    transform: translateY(0) scale(1);
}

/* Hero Form Privacy Note */
.hero-cf7-form .cf7-privacy-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 0.5rem;
}

.hero-cf7-form .cf7-privacy-note i {
    color: #10b981;
}

/* ============================================
   CONTACT SECTION FORM STYLES
   ============================================ */

.contact-cf7-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Contact Form Inputs */
.contact-form-input,
.contact-form-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-family: inherit;
}

.contact-form-input:focus,
.contact-form-select:focus {
    outline: none;
    border-color: inherit;
    box-shadow: none;
    background-color: rgba(255, 255, 255, 0.25);
}

.contact-form-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

/* Contact Form Select */
.contact-form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23ffffff'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.5em 1.5em;
    padding-right: 3rem;
    cursor: pointer;
}

.contact-form-select option {
    color: #000;
    background-color: #fff;
}

/* Contact Form Submit Button */
.contact-form-submit {
    width: 100%;
    padding: 0.75rem 2rem;
    background: linear-gradient(135deg, #3b82f6 0%, #ec4899 100%);
    color: #fff;
    border: none;
    border-radius: 0.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.contact-form-submit:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.6);
}

.contact-form-submit:active {
    transform: translateY(0);
}

/* Contact Form Privacy Note */
.contact-cf7-form .cf7-privacy-note {
    text-align: center;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 0.5rem;
}

.contact-cf7-form .cf7-privacy-note i {
    margin-right: 0.25rem;
    color: #10b981;
}

/* ============================================
   VALIDATION & MESSAGES
   ============================================ */

.wpcf7-validation-errors,
.wpcf7-mail-sent-ng,
.wpcf7-mail-sent-ok {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.wpcf7-validation-errors,
.wpcf7-mail-sent-ng {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.wpcf7-mail-sent-ok {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.wpcf7-not-valid-tip {
    color: #dc2626;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: block;
}

.wpcf7-not-valid {
    border-color: #dc2626 !important;
}

.wpcf7-spinner {
    margin: 0 auto;
    display: block;
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */

@media (max-width: 768px) {
    .hero-form-input,
    .hero-form-select,
    .hero-form-textarea,
    .contact-form-input,
    .contact-form-select {
        padding: 0.875rem;
        font-size: 0.9375rem;
    }
    
    .hero-form-input,
    .hero-form-select {
        padding-left: 2.5rem;
    }
    
    .hero-cf7-form .cf7-field-icon {
        left: 0.875rem;
        font-size: 0.875rem;
    }
    
    .hero-form-submit,
    .contact-form-submit {
        padding: 0.875rem 1rem;
        font-size: 1rem;
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

.wpcf7-form input:focus,
.wpcf7-form select:focus,
.wpcf7-form textarea:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

.wpcf7-form input[required],
.wpcf7-form select[required],
.wpcf7-form textarea[required] {
    border-left: 3px solid #3b82f6;
}
