/* Frontend Styles for Globway MO Flow */

.gmf-container {
    max-width: 500px;
    margin: 20px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.gmf-form-wrapper {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Input Group */
.gmf-input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.gmf-input {
    flex: 1;
    padding: 12px 16px;
    font-size: 16px;
    border: 2px solid #cccccc;
    border-radius: 6px;
    transition: border-color 0.3s ease;
    outline: none;
}

.gmf-input:focus {
    border-color: #0073aa;
}

.gmf-input::placeholder {
    color: #999;
}

/* Button Styles */
.gmf-button {
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.gmf-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Direct MO Button */
.gmf-direct-mo {
    text-align: center;
    margin-bottom: 15px;
}

.gmf-direct-button {
    width: 100%;
    max-width: 300px;
    padding: 16px 32px;
    font-size: 18px;
}

/* Messages */
.gmf-messages {
    margin-top: 15px;
}

.gmf-loading,
.gmf-success,
.gmf-error,
.gmf-info {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 10px;
    font-size: 14px;
}

.gmf-loading {
    background: #e3f2fd;
    color: #1976d2;
    border: 1px solid #90caf9;
    display: flex;
    align-items: center;
    gap: 10px;
}

.gmf-success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #81c784;
}

.gmf-error {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ef9a9a;
}

.gmf-info {
    background: #fff3e0;
    color: #e65100;
    border: 1px solid #ffb74d;
}

/* Spinner */
.gmf-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid #1976d2;
    border-top-color: transparent;
    border-radius: 50%;
    animation: gmf-spin 0.8s linear infinite;
}

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

/* SMS Instructions */
.gmf-sms-instructions {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 6px;
    margin-top: 10px;
    text-align: center;
}

.gmf-sms-instructions strong {
    color: #333;
    font-size: 16px;
}

.gmf-sms-link {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 20px;
    background: #4caf50;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.gmf-sms-link:hover {
    background: #45a049;
    color: white;
}

/* Responsive */
@media (max-width: 600px) {
    .gmf-container {
        margin: 10px;
    }
    
    .gmf-input-group {
        flex-direction: column;
    }
    
    .gmf-button {
        width: 100%;
    }
}
