/**
 * GorillaDash Newsletter Signup Form Styles
 *
 * Main stylesheet for newsletter signup form
 */

/* Component Container */
#gorilladash-newsletter-component.gorilladash-newsletter-component {
    max-width: 600px;
    margin: 0 auto;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    box-sizing: border-box;
}

/* Form Section */
#gorilladash-newsletter-component .gorilladash-newsletter-form-section {
    padding: 30px 2px;
    background-color: rgb(249, 249, 249);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
}

#gorilladash-newsletter-component .gorilladash-newsletter-form-section h3 {
    margin-top: 0;
    margin-bottom: 10px;
    padding: 0;
    font-size: 1.8em;
    color: #333333;
    font-weight: 600;
    line-height: 1.3;
    text-align: left;
    border: none;
    background: none;
}

#gorilladash-newsletter-component .gorilladash-newsletter-form-section > p {
    margin-top: 0;
    margin-bottom: 25px;
    padding: 0;
    color: #666;
    font-size: 1em;
    line-height: 1.5;
}

/* Form Styling */
#gorilladash-newsletter-component .gorilladash-newsletter-form {
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

#gorilladash-newsletter-component .gorilladash-newsletter-form-row {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
    margin-top: 0;
    padding: 0;
    box-sizing: border-box;
}

#gorilladash-newsletter-component .gorilladash-newsletter-form-row:last-of-type {
    margin-bottom: 0;
}

#gorilladash-newsletter-component .gorilladash-newsletter-form-row label {
    display: block;
    margin-top: 0;
    margin-bottom: 8px;
    padding: 0;
    font-weight: 600;
    color: #1e1e1e;
    font-size: 0.95em;
    line-height: 1.4;
    text-align: left;
}

/* Input Fields */
#gorilladash-newsletter-component .gorilladash-newsletter-form-row input[type="text"],
#gorilladash-newsletter-component .gorilladash-newsletter-form-row input[type="email"] {
    width: 100%;
    max-width: 100%;
    padding: 0 15px;
    margin: 0;
    border: 2px solid #333333;
    border-radius: 6px;
    font-size: 15px;
    line-height: 1.5;
    box-sizing: border-box;
    transition: all 0.2s ease;
    background-color: #fff;
    color: #333;
    font-family: inherit;
    height: 42px;
}

#gorilladash-newsletter-component .gorilladash-newsletter-form-row input[type="text"]:focus,
#gorilladash-newsletter-component .gorilladash-newsletter-form-row input[type="email"]:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

#gorilladash-newsletter-component .gorilladash-newsletter-form-row input[type="text"]::placeholder,
#gorilladash-newsletter-component .gorilladash-newsletter-form-row input[type="email"]::placeholder {
    color: #999;
    opacity: 1;
}

/* Submit Button */
#gorilladash-newsletter-component .gorilladash-newsletter-submit-btn,
#gorilladash-newsletter-component button.gorilladash-newsletter-submit-btn {
    width: 100%;
    max-width: 100%;
    padding: 0 24px;
    margin: 0;
    background-color: transparent;
    color: #333333;
    border: 2px solid #333333;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.5;
    text-align: center;
    display: block;
    box-sizing: border-box;
    font-family: inherit;
    height: 42px;
    text-decoration: none;
}

#gorilladash-newsletter-component .gorilladash-newsletter-submit-btn:hover,
#gorilladash-newsletter-component button.gorilladash-newsletter-submit-btn:hover {
    background-color: #666666;
    color: white;
    border-color: #666666;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(102, 102, 102, 0.3);
}

#gorilladash-newsletter-component .gorilladash-newsletter-submit-btn:active,
#gorilladash-newsletter-component button.gorilladash-newsletter-submit-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(102, 102, 102, 0.3);
}

#gorilladash-newsletter-component .gorilladash-newsletter-submit-btn:disabled,
#gorilladash-newsletter-component button.gorilladash-newsletter-submit-btn:disabled {
    background-color: transparent;
    color: #ccc;
    border-color: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    opacity: 0.6;
}

/* Message Styles */
#gorilladash-newsletter-component .gorilladash-newsletter-message {
    margin-top: 20px;
    margin-bottom: 0;
    padding: 15px;
    border-radius: 6px;
    display: none;
    font-size: 0.95em;
    line-height: 1.5;
    box-sizing: border-box;
}

#gorilladash-newsletter-component .gorilladash-newsletter-message.success {
    display: block;
    background-color: #d4edda;
    border: 2px solid #c3e6cb;
    color: #155724;
}

#gorilladash-newsletter-component .gorilladash-newsletter-message.error {
    display: block;
    background-color: #f8d7da;
    border: 2px solid #f5c6cb;
    color: #721c24;
}

#gorilladash-newsletter-component .gorilladash-newsletter-message.info {
    display: block;
    background-color: #d1ecf1;
    border: 2px solid #bee5eb;
    color: #0c5460;
}

/* Responsive Design */
@media (max-width: 768px) {
    #gorilladash-newsletter-component .gorilladash-newsletter-form-section {
        padding: 20px 2px;
    }

    #gorilladash-newsletter-component .gorilladash-newsletter-form-section h3 {
        font-size: 1.5em;
    }

    #gorilladash-newsletter-component .gorilladash-newsletter-form-row input[type="text"],
    #gorilladash-newsletter-component .gorilladash-newsletter-form-row input[type="email"] {
        font-size: 16px; /* Prevents zoom on iOS */
    }

    #gorilladash-newsletter-component .gorilladash-newsletter-submit-btn,
    #gorilladash-newsletter-component button.gorilladash-newsletter-submit-btn {
        font-size: 15px;
        padding: 0 20px;
        height: 42px;
    }
}

@media (max-width: 480px) {
    #gorilladash-newsletter-component .gorilladash-newsletter-form-section {
        padding: 15px 2px;
    }

    #gorilladash-newsletter-component .gorilladash-newsletter-form-section h3 {
        font-size: 1.3em;
    }

    #gorilladash-newsletter-component .gorilladash-newsletter-message {
        padding: 12px;
        font-size: 0.9em;
    }
}
