/* ---------------------------------------------------------------------------
   Paginas publicas de inscricao.

   Estava dentro do <style> do inscrever.php. Passou para aqui quando a pagina
   de indicacao (/ref/) precisou do mesmo aspecto: o cartao com o logotipo no
   topo, o campo de telefone com indicativo, os avisos. Assim ha um so desenho
   para manter, e nao dois que vao divergindo.
   --------------------------------------------------------------------------- */
* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
            min-height: 100vh;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 1rem;
        }

        .container {
            width: 100%;
            max-width: 420px;
        }

        .card {
            background: white;
            border-radius: 24px;
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
            overflow: hidden;
            animation: slideUp 0.6s ease-out;
        }

        @keyframes slideUp {
            from { opacity: 0; transform: translateY(30px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .card-header {
            background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
            padding: 2rem;
            text-align: center;
            color: white;
        }

        .estab-logo {
            width: 80px;
            height: 80px;
            border-radius: 16px;
            object-fit: cover;
            margin: 0 auto 1rem;
            display: block;
            border: 3px solid rgba(255,255,255,0.3);
            box-shadow: 0 4px 15px rgba(0,0,0,0.2);
        }

        .whatsapp-icon {
            width: 60px;
            height: 60px;
            background: rgba(255,255,255,0.2);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 1rem;
            font-size: 2rem;
        }

        .card-header h1 {
            font-size: 1.25rem;
            font-weight: 600;
            margin-bottom: 0.5rem;
        }

        .card-header p {
            font-size: 0.9rem;
            opacity: 0.9;
        }

        .estab-name {
            background: rgba(255,255,255,0.2);
            padding: 0.5rem 1rem;
            border-radius: 20px;
            display: inline-block;
            margin-top: 0.75rem;
            font-weight: 500;
        }

        .card-body {
            padding: 2rem;
        }

        .form-group {
            margin-bottom: 1.25rem;
        }

        .form-label {
            display: block;
            font-size: 0.875rem;
            font-weight: 600;
            color: #374151;
            margin-bottom: 0.5rem;
        }

        .form-control {
            width: 100%;
            padding: 0.875rem 1rem;
            border: 2px solid #e5e7eb;
            border-radius: 12px;
            font-size: 1rem;
            font-family: inherit;
            transition: all 0.2s;
        }

        .form-control:focus {
            outline: none;
            border-color: #25D366;
            box-shadow: 0 0 0 4px rgba(37, 211, 102, 0.15);
        }

        .form-control::placeholder {
            color: #9ca3af;
        }

        .phone-input-group {
            display: flex;
            gap: 0.5rem;
        }

        .country-select {
            width: 120px;
            flex-shrink: 0;
            padding: 0.875rem 0.5rem;
            border: 2px solid #e5e7eb;
            border-radius: 12px;
            font-size: 0.9rem;
            font-family: inherit;
            background: white;
            cursor: pointer;
        }

        .country-select:focus {
            outline: none;
            border-color: #25D366;
        }

        .phone-input {
            flex: 1;
        }

        .form-hint {
            display: block;
            margin-top: 0.5rem;
            font-size: 0.8rem;
            color: #6b7280;
        }

        .checkbox-group {
            display: flex;
            align-items: flex-start;
            gap: 0.75rem;
            padding: 1rem;
            background: #f9fafb;
            border-radius: 12px;
            margin-bottom: 1.5rem;
        }

        .checkbox-group input[type="checkbox"] {
            width: 20px;
            height: 20px;
            margin-top: 2px;
            accent-color: #25D366;
            cursor: pointer;
            flex-shrink: 0;
        }

        .checkbox-group label {
            font-size: 0.85rem;
            color: #4b5563;
            line-height: 1.5;
            cursor: pointer;
        }

        .btn-submit {
            width: 100%;
            padding: 1rem;
            background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
            color: white;
            border: none;
            border-radius: 12px;
            font-size: 1rem;
            font-weight: 600;
            font-family: inherit;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            transition: all 0.2s;
        }

        .btn-submit:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 20px -5px rgba(37, 211, 102, 0.4);
        }

        .btn-submit:active {
            transform: translateY(0);
        }

        .btn-submit svg {
            width: 20px;
            height: 20px;
        }

        /* Mensagens de erro/sucesso */
        .alert {
            padding: 1rem;
            border-radius: 12px;
            margin-bottom: 1.25rem;
            display: flex;
            align-items: flex-start;
            gap: 0.75rem;
            font-size: 0.9rem;
        }

        .alert-error {
            background: #fef2f2;
            border: 1px solid #fecaca;
            color: #dc2626;
        }

        .alert-error svg {
            color: #dc2626;
            flex-shrink: 0;
            width: 20px;
            height: 20px;
        }

        /* Página de sucesso */
        .success-page {
            text-align: center;
            padding: 3rem 2rem;
        }

        .success-icon {
            width: 80px;
            height: 80px;
            background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 1.5rem;
            animation: scaleIn 0.5s ease-out;
        }

        @keyframes scaleIn {
            from { transform: scale(0); }
            to { transform: scale(1); }
        }

        .success-icon svg {
            width: 40px;
            height: 40px;
            color: white;
        }

        .success-page h2 {
            font-size: 1.5rem;
            color: #1f2937;
            margin-bottom: 0.75rem;
        }

        .success-page p {
            color: #6b7280;
            line-height: 1.6;
            margin-bottom: 1.5rem;
        }

        .success-page .estab-badge {
            display: inline-block;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            padding: 0.5rem 1.25rem;
            border-radius: 20px;
            font-weight: 500;
            font-size: 0.9rem;
        }

        /* Página de erro (estabelecimento não encontrado) */
        .error-page {
            text-align: center;
            padding: 3rem 2rem;
        }

        .error-icon {
            width: 80px;
            height: 80px;
            background: #fee2e2;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 1.5rem;
        }

        .error-icon svg {
            width: 40px;
            height: 40px;
            color: #dc2626;
        }

        .error-page h2 {
            font-size: 1.25rem;
            color: #1f2937;
            margin-bottom: 0.75rem;
        }

        .error-page p {
            color: #6b7280;
        }

        /* Footer */
        .card-footer {
            text-align: center;
            padding: 1rem 2rem 1.5rem;
            color: #9ca3af;
            font-size: 0.75rem;
            border-top: 1px solid #f3f4f6;
        }

        .card-footer a {
            color: #667eea;
            text-decoration: none;
        }

        /* Privacy link */
        .privacy-link {
            color: #25D366;
            text-decoration: underline;
        }

        /* Loading state */
        .btn-submit.loading {
            pointer-events: none;
            opacity: 0.8;
        }

        .spinner {
            width: 20px;
            height: 20px;
            border: 2px solid rgba(255,255,255,0.3);
            border-top-color: white;
            border-radius: 50%;
            animation: spin 0.8s linear infinite;
        }

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

        /* Responsivo */
        @media (max-width: 380px) {
            .card-header {
                padding: 1.5rem;
            }
            
            .card-body {
                padding: 1.5rem;
            }

            .phone-input-group {
                flex-direction: column;
            }

            .country-select {
                width: 100%;
            }
        }
