/*
Theme Name: StartupQuest
Theme URI: https://www.startupquest.it
Author: Luca Grillo
Author URI: https://www.bytesystems.it
Description: Custom theme for StartupQuest SaaS Platform
Version: 1.0.0
License: Proprietary
*/

/* Basic Reset */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
}

/* Ensure anchor jumps do not hide beneath fixed navbar */
section[id] {
    scroll-margin-top: 6rem;
}


/* ==========================================================================
   Contact Form 7 Custom Styling (Pixel-Perfect Dark Theme)
   ========================================================================== */
.startupquest-cf7-wrapper form {
    margin: 0;
}

.startupquest-cf7-wrapper p {
    margin: 0 0 1.5rem 0;
}

.startupquest-cf7-wrapper p:last-child {
    margin-bottom: 0;
}

.startupquest-cf7-wrapper .wpcf7-form-control-wrap {
    display: block;
    width: 100%;
    position: relative;
}

.startupquest-cf7-wrapper label {
    display: block;
    font-size: 0.75rem;
    font-weight: 900;
    text-transform: uppercase;
    color: #94a3b8; /* slate-400 */
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.startupquest-cf7-wrapper input[type="text"],
.startupquest-cf7-wrapper input[type="email"],
.startupquest-cf7-wrapper input[type="tel"],
.startupquest-cf7-wrapper input[type="url"],
.startupquest-cf7-wrapper select,
.startupquest-cf7-wrapper textarea {
    width: 100% !important;
    background-color: #1e293b !important; /* slate-800 */
    border: 1px solid #334155 !important; /* slate-700 */
    border-radius: 0.75rem !important; /* rounded-xl */
    padding: 1rem 1.25rem !important;
    font-size: 0.95rem !important;
    color: #ffffff !important;
    box-sizing: border-box !important;
    transition: all 0.2s ease !important;
    outline: none !important;
    font-family: inherit !important;
}

.startupquest-cf7-wrapper input[type="text"]:focus,
.startupquest-cf7-wrapper input[type="email"]:focus,
.startupquest-cf7-wrapper input[type="tel"]:focus,
.startupquest-cf7-wrapper input[type="url"]:focus,
.startupquest-cf7-wrapper select:focus,
.startupquest-cf7-wrapper textarea:focus {
    border-color: #6366f1 !important; /* indigo-500 */
    box-shadow: 0 0 0 1px #6366f1 !important;
}

.startupquest-cf7-wrapper input::placeholder,
.startupquest-cf7-wrapper textarea::placeholder {
    color: #64748b !important; /* slate-500 */
    opacity: 1;
}

.startupquest-cf7-wrapper select {
    appearance: none !important;
    -webkit-appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 1.25rem center !important;
    background-size: 1.25rem !important;
    padding-right: 2.75rem !important;
    cursor: pointer;
}

.startupquest-cf7-wrapper select option {
    background-color: #0f172a !important; /* slate-900 */
    color: #ffffff !important;
}

.startupquest-cf7-wrapper textarea {
    resize: none !important;
    min-height: 120px !important;
}

.startupquest-cf7-wrapper input[type="submit"],
.startupquest-cf7-wrapper button[type="submit"],
.startupquest-cf7-wrapper .wpcf7-submit {
    width: 100% !important;
    background-color: #ffffff !important;
    color: #0f172a !important; /* slate-900 */
    border-radius: 1rem !important; /* rounded-2xl */
    font-weight: 900 !important;
    font-size: 0.875rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
    padding: 1.25rem 2rem !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    display: block !important;
    text-align: center !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}

.startupquest-cf7-wrapper input[type="submit"]:hover,
.startupquest-cf7-wrapper button[type="submit"]:hover,
.startupquest-cf7-wrapper .wpcf7-submit:hover {
    background-color: #eef2ff !important; /* indigo-50 */
    transform: translateY(-1px);
}

.startupquest-cf7-wrapper .wpcf7-not-valid-tip {
    color: #f87171 !important; /* red-400 */
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    margin-top: 0.375rem !important;
    display: block !important;
}

.startupquest-cf7-wrapper .wpcf7-not-valid {
    border-color: #f43f5e !important; /* rose-500 */
}

.startupquest-cf7-wrapper .wpcf7-response-output {
    border-radius: 1rem !important;
    padding: 1rem 1.25rem !important;
    font-size: 0.875rem !important;
    font-weight: 700 !important;
    margin: 1.5rem 0 0 0 !important;
    line-height: 1.5 !important;
}

.startupquest-cf7-wrapper form.sent .wpcf7-response-output,
.startupquest-cf7-wrapper .wpcf7-mail-sent-ok {
    background-color: rgba(16, 185, 129, 0.15) !important;
    border: 1px solid rgba(16, 185, 129, 0.4) !important;
    color: #6ee7b7 !important; /* emerald-300 */
}

.startupquest-cf7-wrapper form.failed .wpcf7-response-output,
.startupquest-cf7-wrapper form.invalid .wpcf7-response-output,
.startupquest-cf7-wrapper form.unaccepted .wpcf7-response-output,
.startupquest-cf7-wrapper .wpcf7-validation-errors,
.startupquest-cf7-wrapper .wpcf7-mail-sent-ng {
    background-color: rgba(244, 63, 94, 0.15) !important;
    border: 1px solid rgba(244, 63, 94, 0.4) !important;
    color: #fda4af !important; /* rose-300 */
}

.startupquest-cf7-wrapper .wpcf7-spinner {
    display: block;
    margin: 1rem auto 0 auto;
}
