/**
 * City Guide Manager - Forms Styles
 */

/* ====================================
   FORM CONTAINERS
   ==================================== */

.cgm-newsletter-form-container,
.cgm-contact-form-container {
    max-width: 100%;
    margin: 0;
    background: transparent;
    padding: 0;
}

/* Inline form for newsletter (homepage style) */
.cgm-newsletter-form {
    margin: 0;
}

.cgm-newsletter-form .cgm-form-group {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    align-items: flex-start;
}

.cgm-newsletter-form input[type="email"] {
    flex: 1;
    padding: 14px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    font-size: 1em;
    background: #fff;
    transition: all 0.3s ease;
}

.cgm-newsletter-form input[type="email"]:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 3px rgba(0,102,204,0.1);
}

.cgm-newsletter-form .cgm-button,
.cgm-newsletter-form .btn {
    padding: 14px 30px;
    white-space: nowrap;
    background: #0066cc;
    color: #fff;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cgm-newsletter-form .cgm-button:hover,
.cgm-newsletter-form .btn:hover {
    background: #004c99;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,102,204,0.3);
}

/* Contact Form */
.cgm-contact-form-container {
    max-width: 800px;
    margin: 30px auto;
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.cgm-form-title {
    margin: 0 0 10px;
    color: #333;
    font-size: 1.8em;
    text-align: center;
}

.cgm-form-description {
    color: #666;
    text-align: center;
    margin-bottom: 25px;
    font-size: 1em;
    line-height: 1.6;
}

/* Form Groups */
.cgm-form-group {
    margin-bottom: 20px;
}

.cgm-form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.cgm-form-half {
    flex: 1;
    margin-bottom: 0;
}

.cgm-form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
    font-size: 0.95em;
}

.cgm-form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1em;
    transition: all 0.3s ease;
    background: #f9f9f9;
    box-sizing: border-box;
}

.cgm-form-control:focus {
    outline: none;
    border-color: #0066cc;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0,102,204,0.1);
}

textarea.cgm-form-control {
    resize: vertical;
    min-height: 120px;
}

select.cgm-form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
    padding-right: 45px;
}

/* Submit Button */
.cgm-form-submit {
    text-align: center;
    margin-top: 30px;
}

.cgm-button {
    display: inline-block;
    padding: 14px 35px;
    font-size: 1.1em;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.cgm-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
.cgm-button-primary {
    background: #0066cc;
    color: #fff;
    box-shadow: 0 4px 15px rgba(0,102,204,0.3);
}

.cgm-button-primary:hover {
    background: #004c99;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,102,204,0.4);
}

/* Form Messages */
.cgm-message {
    padding: 12px 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    font-weight: 500;
    text-align: center;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cgm-message-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.cgm-message-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Form Notes */
.cgm-form-note,
.form-note {
    margin-top: 10px;
    text-align: center;
    color: #999;
    font-size: 0.85em;
}

/* ====================================
   RESPONSIVE
   ==================================== */

@media (max-width: 768px) {
    .cgm-newsletter-form .cgm-form-group {
        flex-direction: column;
    }
    
    .cgm-newsletter-form .cgm-button,
    .cgm-newsletter-form .btn {
        width: 100%;
    }
    
    .cgm-contact-form-container {
        padding: 20px;
        margin: 20px auto;
    }
    
    .cgm-form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .cgm-form-half {
        margin-bottom: 20px;
    }
    
    .cgm-form-title {
        font-size: 1.5em;
    }
}

@media (max-width: 480px) {
    .cgm-button {
        width: 100%;
    }
}