/* AziendeGreen Registration Form */
.ag-registration-wrap {
    max-width: 720px;
    margin: 30px auto;
    padding: 0 15px;
    font-family: inherit;
}

.ag-registration-header {
    text-align: center;
    margin-bottom: 30px;
}

.ag-registration-header h2 {
    font-size: 28px;
    margin-bottom: 10px;
    color: #2d6a4f;
}

.ag-registration-header p {
    color: #666;
    font-size: 15px;
}

/* Sections */
.ag-section {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
}

.ag-section h3 {
    font-size: 18px;
    margin: 0 0 5px;
    color: #333;
    border-bottom: 2px solid #2d6a4f;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.ag-section-note {
    font-size: 13px;
    color: #888;
    margin-top: -15px;
    margin-bottom: 15px;
}

/* Field rows */
.ag-field-row {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.ag-field-full {
    flex: 1;
}

.ag-field-half {
    flex: 1;
}

@media (max-width: 600px) {
    .ag-field-row {
        flex-direction: column;
        gap: 10px;
    }
}

/* Fields */
.ag-field label,
.ag-field-half label,
.ag-field-full label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

.ag-required {
    color: #d32f2f;
}

.ag-form input[type="text"],
.ag-form input[type="email"],
.ag-form input[type="tel"],
.ag-form input[type="number"],
.ag-form select,
.ag-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.ag-form input:focus,
.ag-form select:focus,
.ag-form textarea:focus {
    border-color: #2d6a4f;
    outline: none;
    box-shadow: 0 0 0 2px rgba(45, 106, 79, 0.15);
}

.ag-form input.ag-invalid,
.ag-form select.ag-invalid {
    border-color: #d32f2f;
}

.ag-field-error {
    display: block;
    color: #d32f2f;
    font-size: 12px;
    margin-top: 4px;
    min-height: 16px;
}

.ag-field-hint {
    display: block;
    color: #888;
    font-size: 12px;
    margin-top: 4px;
}

/* Radio group */
.ag-radio-group {
    display: flex;
    gap: 15px;
    padding-top: 8px;
}

.ag-radio-group label {
    font-weight: 400;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.ag-radio-group input[type="radio"] {
    width: auto;
    accent-color: #2d6a4f;
}

.ag-checkbox-label input[type="checkbox"] {
    accent-color: #2d6a4f;
}

/* Checkbox */
.ag-checkbox-label {
    font-weight: 400 !important;
    cursor: pointer;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.ag-checkbox-label input[type="checkbox"] {
    width: auto;
    margin-top: 3px;
}

/* Phone verify */
.ag-phone-verify-wrap {
    display: flex;
    gap: 10px;
}

.ag-phone-verify-wrap input {
    flex: 1;
}

/* OTP section */
.ag-otp-section {
    margin-top: 10px;
    padding: 12px;
    background: #f5f5f5;
    border-radius: 6px;
}

.ag-otp-input-wrap {
    display: flex;
    gap: 10px;
    margin-bottom: 8px;
}

.ag-otp-input-wrap input {
    flex: 1;
    text-align: center;
    letter-spacing: 8px;
    font-size: 18px;
    font-weight: 600;
}

.ag-otp-actions {
    text-align: right;
}

.ag-otp-message {
    display: block;
    font-size: 13px;
    margin-top: 5px;
}

.ag-otp-message.ag-success {
    color: #2d6a4f;
}

.ag-otp-message.ag-error {
    color: #d32f2f;
}

/* Verified badge */
.ag-verified-badge {
    margin-top: 8px;
    color: #2d6a4f;
    font-weight: 600;
    font-size: 14px;
}

.ag-checkmark {
    display: inline-block;
    width: 20px;
    height: 20px;
    background: #2d6a4f;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    line-height: 20px;
    font-size: 12px;
    margin-right: 5px;
}

/* Plans */
.ag-plans-wrap {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.ag-plan-card {
    flex: 1;
    min-width: 200px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: border-color 0.2s, box-shadow 0.2s;
    overflow: hidden;
}

.ag-plan-card label {
    display: block;
    cursor: pointer;
    padding: 0;
    font-weight: 400;
}

.ag-plan-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.ag-plan-content {
    padding: 20px;
}

.ag-plan-card h4 {
    margin: 0 0 10px;
    font-size: 18px;
}

.ag-plan-price {
    font-size: 24px;
    font-weight: 700;
    color: #2d6a4f;
    margin-bottom: 10px;
}

.ag-plan-desc {
    font-size: 13px;
    color: #666;
    margin: 0;
}

.ag-plan-card.ag-plan-selected,
.ag-plan-card:has(input:checked) {
    border-color: #2d6a4f;
    box-shadow: 0 0 0 2px rgba(45, 106, 79, 0.2);
}

/* Buttons */
.ag-btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, opacity 0.2s;
    text-decoration: none;
}

.ag-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.ag-btn-primary {
    background: #2d6a4f;
    color: #fff;
}

.ag-btn-primary:hover:not(:disabled) {
    background: #1b4332;
}

.ag-btn-secondary {
    background: #fff;
    color: #2d6a4f;
    border: 2px solid #2d6a4f;
}

.ag-btn-secondary:hover:not(:disabled) {
    background: #2d6a4f;
    color: #fff;
}

.ag-btn-lg {
    padding: 14px 40px;
    font-size: 16px;
    width: 100%;
}

.ag-link-btn {
    background: none;
    border: none;
    color: #2d6a4f;
    font-size: 13px;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
}

/* Form actions */
.ag-form-actions {
    text-align: center;
    margin-top: 10px;
}

/* Form message */
.ag-form-message {
    text-align: center;
    padding: 12px;
    border-radius: 6px;
    margin-top: 15px;
    font-weight: 500;
}

.ag-form-message.ag-success {
    background: #e8f5e9;
    color: #2d6a4f;
}

.ag-form-message.ag-error {
    background: #ffebee;
    color: #d32f2f;
}

/* Already logged */
.ag-already-logged {
    text-align: center;
    max-width: 480px;
    margin: 60px auto;
    padding: 50px 30px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
}

.ag-already-logged-icon {
    margin-bottom: 20px;
}

.ag-already-logged-icon .fa {
    font-size: 56px;
    color: #2d6a4f;
}

.ag-already-logged h2 {
    font-size: 24px;
    color: #333;
    margin: 0 0 10px;
}

.ag-already-logged p {
    font-size: 15px;
    color: #666;
    margin-bottom: 25px;
}

.ag-already-logged .ag-btn {
    display: inline-block;
    width: auto;
    padding: 12px 36px;
}
