/* Variáveis de cores da agendaOS */
:root {
    --primary-color: #0066cc;
    --secondary-color: #004d99;
    --accent-color: #ff6600;
    --text-color: #333333;
    --light-gray: #f5f5f5;
    --border-color: #e0e0e0;
    --footer-bg: #f8f9fa;
    --success-color: #28a745;
    --error-color: #dc3545;
    --hover-color: #0052a3;
}

/* Reset e estilos globais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #ffffff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.logo-link {
    display: inline-block;
    text-decoration: none;
}

.logo {
    height: 80px;
    width: auto;
    display: block;
}

/* Main Content */
.main-content {
    margin-top: 70px;
    padding: 40px 0;
}

h1 {
    color: var(--primary-color);
    font-size: 2.5em;
    margin-bottom: 10px;
    text-align: center;
}

.subtitle {
    color: var(--text-color);
    font-size: 1.2em;
    text-align: center;
    margin-bottom: 30px;
}

/* Footer */
.footer {
    background-color: #f8f9fa;
    padding: 60px 0 30px;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-row {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.footer-column {
    flex: 1;
    min-width: 250px;
    margin-bottom: 30px;
    padding: 0 15px;
}

.footer-logo {
    height: 80px;
    margin-bottom: 15px;
}

.footer-description {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
}

.footer-column h3 {
    color: var(--primary-color);
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: 500;
}

.footer-phone,
.footer-whatsapp {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.footer-phone:hover,
.footer-whatsapp:hover {
    color: var(--primary-color);
}

.footer-phone i,
.footer-whatsapp i {
    margin-right: 10px;
    font-size: 16px;
}

.footer-whatsapp i {
    color: #25D366;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    margin-top: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.footer-info {
    width: 100%;
    padding: 10px 0;
}

.version-info {
    font-size: 12px;
    color: #666;
    text-align: center;
    padding: 10px 0;
}

.version-info p {
    margin: 3px 0;
}

/* Responsividade do Footer */
@media (max-width: 768px) {
    .footer {
        padding: 40px 0 20px;
    }

    .footer-row {
        flex-direction: column;
        text-align: center;
    }

    .footer-column {
        margin-bottom: 30px;
    }

    .footer-logo {
        height: 60px;
        margin: 0 auto 15px;
    }

    .footer-phone,
    .footer-whatsapp {
        justify-content: center;
    }

    .footer-links {
        text-align: center;
    }

    .logo {
        height: 60px;
    }
}

/* Header e Hero */
header {
    text-align: center;
    padding: 40px 0;
}

header h1 {
    font-size: 2.5em;
    color: #2c3e50;
    margin-bottom: 10px;
}

.hero {
    text-align: center;
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0, 102, 204, 0.1);
    margin-bottom: 30px;
}

.hero h2 {
    font-size: 2em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.hero p {
    color: var(--text-color);
    font-size: 1.1em;
}

/* Formulário */
.contact-form {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0, 102, 204, 0.1);
    max-width: 800px;
    margin: 0 auto;
}

.contact-form h2 {
    color: var(--primary-color);
    margin-bottom: 25px;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #2c3e50;
    font-weight: 500;
}

input, select, textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 5px rgba(0, 102, 204, 0.2);
}

/* Estilos para o select de país */
.select-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

.select-flag {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    pointer-events: none;
}

.flag-icon {
    display: inline-block;
    width: 20px !important;
    height: 15px !important;
    border-radius: 2px;
    box-shadow: 0 0 1px rgba(0,0,0,0.2);
    background-size: cover;
    background-position: center;
    vertical-align: middle;
}

#pais {
    padding-left: 40px !important;
    padding-right: 30px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5z' fill='%23333'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 16px;
}

.country-name {
    vertical-align: middle;
}

/* Ajustes para o select de países em diferentes navegadores */
@-moz-document url-prefix() {
    #pais option {
        display: flex;
        align-items: center;
        padding: 8px;
        line-height: 1.4;
    }
}

@media screen and (-webkit-min-device-pixel-ratio: 0) {
    #pais option {
        display: flex;
        align-items: center;
        padding: 8px;
    }
}

@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
    #pais option {
        display: flex;
        align-items: center;
        padding: 8px;
    }
}

/* Grid para campos lado a lado */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

/* Validação e Erros */
.error-message {
    color: var(--error-color);
    font-size: 14px;
    margin-top: 5px;
    display: none;
}

input.invalid, select.invalid {
    border-color: var(--error-color);
}

input.valid, select.valid {
    border-color: var(--success-color);
}

/* Botão de Submit */
button[type="submit"] {
    background: var(--primary-color);
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.3s ease;
    font-weight: 500;
}

button[type="submit"]:hover {
    background: var(--hover-color);
}

/* Loading */
#loading {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.loading-spinner {
    border: 4px solid var(--light-gray);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Informações do formulário */
.form-info {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: #666;
}

.form-info a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.form-info a:hover {
    color: var(--hover-color);
}

/* Responsividade */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .container {
        padding: 10px;
    }

    .contact-form {
        padding: 20px;
    }
}

/* reCAPTCHA responsivo */
.g-recaptcha {
    margin: 20px 0;
    display: flex;
    justify-content: center;
}

@media (max-width: 320px) {
    .g-recaptcha {
        transform: scale(0.85);
        transform-origin: center;
    }
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    overflow-y: auto;
}

.modal-content {
    position: relative;
    background-color: #fff;
    margin: 30px auto;
    padding: 0;
    width: 90%;
    max-width: 900px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.modal-header {
    padding: 25px 30px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f8f9fa;
    border-radius: 12px 12px 0 0;
}

.modal-header h2 {
    margin: 0;
    color: var(--primary-color);
    font-size: 1.75em;
    font-weight: 500;
}

.close-modal {
    color: #666;
    font-size: 28px;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.3s ease;
    background: none;
    border: none;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-modal:hover {
    color: var(--primary-color);
    background-color: rgba(0, 0, 0, 0.05);
}

.modal-body {
    padding: 30px;
    line-height: 1.6;
    color: var(--text-color);
    font-size: 16px;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
}

.modal-body h1,
.modal-body h2,
.modal-body h3 {
    color: var(--primary-color);
    margin: 1.5em 0 1em;
    font-weight: 500;
    line-height: 1.3;
}

.modal-body h1 {
    font-size: 1.75em;
}

.modal-body h2 {
    font-size: 1.5em;
}

.modal-body h3 {
    font-size: 1.25em;
}

.modal-body p {
    margin-bottom: 1.2em;
    line-height: 1.8;
}

.modal-body ul,
.modal-body ol {
    margin: 1.2em 0;
    padding-left: 2em;
}

.modal-body li {
    margin-bottom: 0.8em;
}

.modal-body a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.modal-body a:hover {
    color: var(--hover-color);
    text-decoration: underline;
}

.loading-container {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 50px;
    min-height: 300px;
}

.loading-container .loading-spinner {
    margin-bottom: 20px;
}

/* Mensagem de erro no modal */
.modal .error-message {
    text-align: center;
    padding: 40px;
    color: #666;
}

.modal .error-message p {
    margin-bottom: 15px;
    font-size: 16px;
}

.modal .error-message a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 10px 20px;
    border: 1px solid var(--primary-color);
    border-radius: 6px;
    display: inline-block;
    margin-top: 10px;
}

.modal .error-message a:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Responsividade do Modal */
@media (max-width: 768px) {
    .modal-content {
        margin: 15px;
        width: auto;
    }

    .modal-header {
        padding: 20px;
    }

    .modal-body {
        padding: 20px;
        font-size: 15px;
        max-height: calc(100vh - 150px);
    }
} 