/*
Theme Name: NextEraEdge Theme
Theme URI: https://ais-dev-ubqdapk4345z35ydf4suvv-26451312303.asia-northeast1.run.app
Author: NextEraEdge
Description: A modern, professional WordPress theme for SAP consulting services.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nexteraedge
*/

/* WordPress core styling */
.alignnone {
    margin: 5px 20px 20px 0;
}

.aligncenter,
div.aligncenter {
    display: block;
    margin: 5px auto 5px auto;
}

.alignright {
    float:right;
    margin: 5px 0 20px 20px;
}

.alignleft {
    float: left;
    margin: 5px 20px 20px 0;
}

a img.alignright {
    float: right;
    margin: 5px 0 20px 20px;
}

a img.alignnone {
    margin: 5px 20px 20px 0;
}

a img.alignleft {
    float: left;
    margin: 5px 20px 20px 0;
}

a img.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wp-caption {
    background: #fff;
    border: 1px solid #f0f0f0;
    max-width: 96%; /* Image does not overflow the content area */
    padding: 5px 3px 10px;
    text-align: center;
}

.wp-caption.alignnone {
    margin: 5px 20px 20px 0;
}

.wp-caption.alignleft {
    margin: 5px 20px 20px 0;
}

.wp-caption.alignright {
    margin: 5px 0 20px 20px;
}

.wp-caption img {
    border: 0 none;
    height: auto;
    margin: 0;
    max-width: 98.5%;
    padding: 0;
    width: auto;
}

.wp-caption p.wp-caption-text {
    font-size: 11px;
    line-height: 17px;
    margin: 0;
    padding: 0 4px 5px;
}

/* Text meant only for screen readers. */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important; /* Many screen reader and browser combinations announce broken words as they would appear visually. */
}

.screen-reader-text:focus {
	background-color: #eee;
	clip: auto !important;
	clip-path: none;
	color: #444;
	display: block;
	font-size: 1em;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
}

/* Contact Form 7 Styling */
.wpcf7-form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.wpcf7-form p {
    margin: 0 !important;
}

.wpcf7-form br {
    display: none;
}

/* Grid support for compact layout */
.cf7-grid {
    display: flex;
    gap: 0.5rem;
    align-items: flex-end;
}

.cf7-grid > * {
    flex: 1;
    min-width: 0;
}

.wpcf7-form label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b; /* slate-500 */
    margin-bottom: 0.125rem;
}

.wpcf7-form-control-wrap {
    display: block;
    margin-top: 0.125rem;
}

.wpcf7-form .wpcf7-text,
.wpcf7-form .wpcf7-email,
.wpcf7-form .wpcf7-textarea {
    display: block;
    width: 100%;
    padding: 0.25rem 0.5rem; /* Even more compact padding */
    font-size: 0.75rem;
    line-height: 1.25rem;
    color: #0f172a; /* slate-900 */
    background-color: #ffffff;
    border: 1px solid #c7d2fe; /* indigo-200 */
    border-radius: 0.25rem; /* rounded-sm */
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    transition: all 0.2s;
}

.wpcf7-form .wpcf7-text:focus,
.wpcf7-form .wpcf7-email:focus,
.wpcf7-form .wpcf7-textarea:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
    border-color: #6366f1; /* indigo-500 */
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.wpcf7-form .wpcf7-textarea {
    height: 4.5rem; /* Approx 3 lines (1.5rem line-height * 3) */
    min-height: 4.5rem;
    overflow-y: auto; /* Show scrollbar when needed */
    resize: vertical;
}

.wpcf7-submit {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.375rem 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.25rem;
    color: #ffffff;
    background-color: #4f46e5; /* indigo-600 */
    border: 1px solid transparent;
    border-radius: 0.375rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 0.25rem;
}

.wpcf7-submit:hover {
    background-color: #4338ca; /* indigo-700 */
}

.wpcf7-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Validation messages */
.wpcf7-not-valid-tip {
    color: #dc2626; /* red-600 */
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

.wpcf7-response-output {
    margin: 1rem 0 0 !important;
    padding: 0.75rem 1rem !important;
    border-radius: 0.5rem !important;
    font-size: 0.875rem !important;
    border: 1px solid transparent !important;
}

.wpcf7-mail-sent-ok {
    background-color: #f0fdf4 !important; /* green-50 */
    border-color: #bbf7d0 !important; /* green-200 */
    color: #166534 !important; /* green-800 */
}

.wpcf7-validation-errors,
.wpcf7-acceptance-missing {
    background-color: #fef2f2 !important; /* red-50 */
    border-color: #fecaca !important; /* red-200 */
    color: #991b1b !important; /* red-800 */
}
