/*
Theme Name: Feniks
Theme URI: 
Description: Tadej Hanzic WP theme - Standalone theme with Tailwind CSS
Author: Feniks
Author URI: 
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

/* Contact Form 7 Custom Styling - Hero Section */
.hero-form .wpcf7-form {
    display: grid;
    gap: 0.75rem; /* 12px */
}

.hero-form .wpcf7-form label {
    display: block;
    width: 100%;
}

.hero-form .wpcf7-form input[type="text"],
.hero-form .wpcf7-form input[type="email"],
.hero-form .wpcf7-form textarea {
    width: 100%;
    border-radius: 0.75rem; /* 12px - rounded-xl */
    border: 1px solid rgba(255, 255, 255, 0.2);
    background-color: rgba(255, 255, 255, 0.1);
    color: white !important;
    padding: 0.625rem 1rem; /* 10px 16px - px-4 py-2.5 */
    font-size: 1rem;
    transition: all 0.15s ease;
}

.hero-form .wpcf7-form textarea {
    resize: vertical;
    min-height: 100px;
}

.hero-form .wpcf7-form input::placeholder,
.hero-form .wpcf7-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.7) !important;
}

.hero-form .wpcf7-form input:focus,
.hero-form .wpcf7-form textarea:focus {
    outline: none !important;
    border-color: rgba(251, 146, 60, 0.5);
    box-shadow: 0 0 0 2px rgba(251, 146, 60, 0.3);
    background-color: rgba(255, 255, 255, 0.15);
}

/* Quiz field styling - visible and inline */
.hero-form .wpcf7-form .wpcf7-form-control-wrap[data-name="quiz-spam"] {
    display: block;
}

.hero-form .wpcf7-form .wpcf7-form-control-wrap[data-name="quiz-spam"] label {
    display: flex !important;
    align-items: center;
    gap: 0.5rem;
}

.hero-form .wpcf7-form .wpcf7-quiz-label {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 0.875rem;
    white-space: nowrap;
}

.hero-form .wpcf7-form .wpcf7-quiz {
    width: 70px !important;
    border-radius: 0.5rem !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: white !important;
    padding: 0.5rem !important;
    font-size: 0.875rem !important;
    text-align: center;
}

.hero-form .wpcf7-form .wpcf7-quiz:focus {
    outline: none !important;
    border-color: rgba(251, 146, 60, 0.5) !important;
    box-shadow: 0 0 0 2px rgba(251, 146, 60, 0.3) !important;
    background-color: rgba(255, 255, 255, 0.15) !important;
}

/* Hide the hidden quiz answer field */
.hero-form .wpcf7-form input[name^="_wpcf7_quiz_answer"] {
    display: none;
}

/* Submit button styling */
.hero-form .wpcf7-form .wpcf7-submit {
    width: 100%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    border-radius: 0.75rem; /* rounded-xl */
    background-color: #10b981 !important; /* accent-500 green */
    color: white !important;
    font-weight: 600;
    padding: 0.625rem 1.25rem; /* px-5 py-2.5 */
    margin-top: 0.25rem; /* mt-1 */
    border: none;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.hero-form .wpcf7-form .wpcf7-submit:hover {
    background-color: #059669 !important; /* accent-600 green */
}


/* Response messages */
.hero-form .wpcf7-response-output {
    color: white;
    margin-top: 1rem;
    padding: 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    border: none !important;
}

.hero-form .wpcf7-mail-sent-ok {
    background-color: rgba(16, 185, 129, 0.2);
    border-left: 4px solid var(--color-accent-500);
}

.hero-form .wpcf7-validation-errors,
.hero-form .wpcf7-mail-sent-ng {
    background-color: rgba(239, 68, 68, 0.2);
    border-left: 4px solid #ef4444;
}

.hero-form .wpcf7-spam-blocked {
    background-color: rgba(251, 146, 60, 0.2);
    border-left: 4px solid #fb923c;
}

/* Validation error styling */
.hero-form .wpcf7-form .wpcf7-not-valid-tip {
    color: #fca5a5;
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

.hero-form .wpcf7-form .wpcf7-not-valid {
    border-color: rgba(239, 68, 68, 0.5) !important;
}

/* Loading spinner */
.hero-form .wpcf7-form .wpcf7-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: wpcf7-spin 0.6s linear infinite;
    margin-left: 0.5rem;
}

@keyframes wpcf7-spin {
    to { transform: rotate(360deg); }
}

/* ========================================
   Contact Form 7 - Footer/Noga Form Styling
   ======================================== */

.noga-form .wpcf7-form {
    display: grid;
    gap: 0.75rem; /* 12px */
}

.noga-form .wpcf7-form label {
    display: block;
    width: 100%;
}

/* Two column grid for name and contact */
.noga-form .wpcf7-form .form-row-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

/* Responsive: single column on mobile */
@media (max-width: 767px) {
    .noga-form .wpcf7-form .form-row-2col {
        grid-template-columns: 1fr;
    }
}

.noga-form .wpcf7-form input[type="text"],
.noga-form .wpcf7-form input[type="email"],
.noga-form .wpcf7-form textarea {
    width: 100%;
    border-radius: 0.75rem; /* 12px - rounded-xl */
    border: 1px solid #cbd5e1; /* slate-300 */
    background-color: white;
    color: #0f172a; /* slate-900 */
    padding: 0.625rem 1rem; /* 10px 16px - px-4 py-2.5 */
    font-size: 1rem;
    transition: all 0.15s ease;
}

.noga-form .wpcf7-form textarea {
    resize: vertical;
    min-height: 150px; /* rows 6 */
}

.noga-form .wpcf7-form input::placeholder,
.noga-form .wpcf7-form textarea::placeholder {
    color: #94a3b8; /* slate-400 */
}

.noga-form .wpcf7-form input:focus,
.noga-form .wpcf7-form textarea:focus {
    outline: none !important;
    border-color: #93c5fd; /* primary-300 */
    box-shadow: 0 0 0 2px rgba(147, 197, 253, 0.3);
}

/* Quiz field styling - visible and inline */
.noga-form .wpcf7-form .wpcf7-form-control-wrap[data-name="quiz-spam"] {
    display: block;
}

.noga-form .wpcf7-form .wpcf7-form-control-wrap[data-name="quiz-spam"] label {
    display: flex !important;
    align-items: center;
    gap: 0.5rem;
}

.noga-form .wpcf7-form .wpcf7-quiz-label {
    color: #475569 !important; /* slate-600 */
    font-size: 0.875rem;
    white-space: nowrap;
}

.noga-form .wpcf7-form .wpcf7-quiz {
    width: 70px !important;
    border-radius: 0.5rem !important;
    border: 1px solid #cbd5e1 !important; /* slate-300 */
    background-color: white !important;
    color: #0f172a !important; /* slate-900 */
    padding: 0.5rem !important;
    font-size: 0.875rem !important;
    text-align: center;
}

.noga-form .wpcf7-form .wpcf7-quiz:focus {
    outline: none !important;
    border-color: #93c5fd !important; /* primary-300 */
    box-shadow: 0 0 0 2px rgba(147, 197, 253, 0.3) !important;
}

/* Hide the hidden quiz answer field */
.noga-form .wpcf7-form input[name^="_wpcf7_quiz_answer"] {
    display: none;
}

/* Checkbox acceptance styling */
.noga-form .wpcf7-form .wpcf7-acceptance {
    display: flex;
    align-items: start;
    gap: 0.5rem;
    font-size: 0.75rem; /* text-xs */
    color: #475569; /* slate-600 */
}

.noga-form .wpcf7-form .wpcf7-acceptance input[type="checkbox"] {
    margin-top: 0.25rem;
    width: auto !important;
    cursor: pointer;
}

/* Submit button styling */
.noga-form .wpcf7-form .wpcf7-submit {
    width: 100%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    border-radius: 0.75rem; /* rounded-xl */
    background-color: #10b981 !important; /* accent-500 green */
    color: white !important;
    font-weight: 600;
    padding: 0.625rem 1.25rem; /* px-5 py-2.5 */
    margin-top: 0.25rem; /* mt-1 */
    border: none;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.noga-form .wpcf7-form .wpcf7-submit:hover {
    background-color: #059669 !important; /* accent-600 green */
}

/* Response messages */
.noga-form .wpcf7-response-output {
    color: #0f172a; /* slate-900 */
    margin-top: 1rem;
    padding: 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    border: none !important;
}

.noga-form .wpcf7-mail-sent-ok {
    background-color: rgba(16, 185, 129, 0.1);
    border-left: 4px solid #10b981;
    color: #065f46; /* green-800 */
}

.noga-form .wpcf7-validation-errors,
.noga-form .wpcf7-mail-sent-ng {
    background-color: rgba(239, 68, 68, 0.1);
    border-left: 4px solid #ef4444;
    color: #991b1b; /* red-800 */
}

.noga-form .wpcf7-spam-blocked {
    background-color: rgba(251, 146, 60, 0.1);
    border-left: 4px solid #fb923c;
    color: #9a3412; /* orange-800 */
}

/* Validation error styling */
.noga-form .wpcf7-form .wpcf7-not-valid-tip {
    color: #ef4444; /* red-500 */
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

.noga-form .wpcf7-form .wpcf7-not-valid {
    border-color: #ef4444 !important; /* red-500 */
}

/* Loading spinner */
.noga-form .wpcf7-form .wpcf7-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(16, 185, 129, 0.3);
    border-top-color: #10b981;
    border-radius: 50%;
    animation: wpcf7-spin 0.6s linear infinite;
    margin-left: 0.5rem;
}
